diff options
author | Martin Reindl <martin@cvs.openbsd.org> | 2006-12-24 12:47:58 +0000 |
---|---|---|
committer | Martin Reindl <martin@cvs.openbsd.org> | 2006-12-24 12:47:58 +0000 |
commit | 41780302a8a6805efdd31929320bfbc72bae1d51 (patch) | |
tree | 431984a6bd1099382398b1dd8ec69023a7b9d9ea /games/mille/mille.c | |
parent | c67849d8fa6a493c62628da0a53933b31cd7cbea (diff) |
fix program name in usage, use __progname
Diffstat (limited to 'games/mille/mille.c')
-rw-r--r-- | games/mille/mille.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/games/mille/mille.c b/games/mille/mille.c index 34ba4ebda84..2213e7b2916 100644 --- a/games/mille/mille.c +++ b/games/mille/mille.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mille.c,v 1.15 2006/10/31 15:16:46 martin Exp $ */ +/* $OpenBSD: mille.c,v 1.16 2006/12/24 12:47:57 martin Exp $ */ /* $NetBSD: mille.c,v 1.4 1995/03/24 05:01:48 cgd Exp $ */ /* @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)mille.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: mille.c,v 1.15 2006/10/31 15:16:46 martin Exp $"; +static char rcsid[] = "$OpenBSD: mille.c,v 1.16 2006/12/24 12:47:57 martin Exp $"; #endif #endif /* not lint */ @@ -57,6 +57,7 @@ main(ac, av) char *av[]; { bool restore; + extern char *__progname; #ifdef DEBUG if (strcmp(av[0], "a.out") == 0) { @@ -73,7 +74,7 @@ main(ac, av) case 1: break; default: - fprintf(stderr, "usage: milles [ restore_file ]\n"); + fprintf(stderr, "usage: %s [ restore_file ]\n", __progname); exit(1); /* NOTREACHED */ } |