diff options
-rw-r--r-- | games/boggle/boggle/bog.c | 9 | ||||
-rw-r--r-- | games/mille/mille.c | 7 |
2 files changed, 10 insertions, 6 deletions
diff --git a/games/boggle/boggle/bog.c b/games/boggle/boggle/bog.c index 24ca7ff76c1..93306e1cb45 100644 --- a/games/boggle/boggle/bog.c +++ b/games/boggle/boggle/bog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bog.c,v 1.14 2004/07/10 07:26:22 deraadt Exp $ */ +/* $OpenBSD: bog.c,v 1.15 2006/12/24 12:47:57 martin Exp $ */ /* $NetBSD: bog.c,v 1.5 1995/04/24 12:22:32 cgd Exp $ */ /*- @@ -43,7 +43,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)bog.c 8.1 (Berkeley) 6/11/93"; #else -static char rcsid[] = "$OpenBSD: bog.c,v 1.14 2004/07/10 07:26:22 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: bog.c,v 1.15 2006/12/24 12:47:57 martin Exp $"; #endif #endif /* not lint */ @@ -673,7 +673,10 @@ compar(const void *p, const void *q) void usage(void) { + extern char *__progname; + (void) fprintf(stderr, - "usage: bog [-bd] [-s#] [-t#] [-w#] [+[+]] [boardspec]\n"); + "usage: %s [-bd] [-s#] [-t#] [-w#] [+[+]] [boardspec]\n", + __progname); exit(1); } 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 */ } |