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/boggle | |
parent | c67849d8fa6a493c62628da0a53933b31cd7cbea (diff) |
fix program name in usage, use __progname
Diffstat (limited to 'games/boggle')
-rw-r--r-- | games/boggle/boggle/bog.c | 9 |
1 files changed, 6 insertions, 3 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); } |