summaryrefslogtreecommitdiffstats
path: root/boggle
diff options
context:
space:
mode:
authorpgoyette <pgoyette@NetBSD.org>2010-12-05 04:34:22 +0000
committerpgoyette <pgoyette@NetBSD.org>2010-12-05 04:34:22 +0000
commitea061499cfca6ed03384392d6972b6527402a242 (patch)
treeb79d765a910ae7f5543e902a5e680c336194aa1d /boggle
parent7a7613e47c9abc7a70376d4a03f021988f49899e (diff)
downloadbsdgames-darwin-ea061499cfca6ed03384392d6972b6527402a242.tar.gz
bsdgames-darwin-ea061499cfca6ed03384392d6972b6527402a242.tar.zst
bsdgames-darwin-ea061499cfca6ed03384392d6972b6527402a242.zip
Fix a few of the games to use getprogname() in their usage() functions.
Suggested by Joerg. XXX There are probably many more that have their progname hard-coded, but XXX I'm not up for a wholesale roto-till at the moment.
Diffstat (limited to 'boggle')
-rw-r--r--boggle/boggle/bog.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/boggle/boggle/bog.c b/boggle/boggle/bog.c
index 0b559832..a3502d1e 100644
--- a/boggle/boggle/bog.c
+++ b/boggle/boggle/bog.c
@@ -1,4 +1,4 @@
-/* $NetBSD: bog.c,v 1.25 2010/12/05 04:11:51 pgoyette Exp $ */
+/* $NetBSD: bog.c,v 1.26 2010/12/05 04:34:22 pgoyette Exp $ */
/*-
* Copyright (c) 1993
@@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1993\
#if 0
static char sccsid[] = "@(#)bog.c 8.2 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: bog.c,v 1.25 2010/12/05 04:11:51 pgoyette Exp $");
+__RCSID("$NetBSD: bog.c,v 1.26 2010/12/05 04:34:22 pgoyette Exp $");
#endif
#endif /* not lint */
@@ -707,6 +707,7 @@ static void
usage(void)
{
(void) fprintf(stderr,
- "usage: boggle [-bd] [-s#] [-t#] [-w#] [+[+]] [boardspec]\n");
+ "usage: %s [-bd] [-s#] [-t#] [-w#] [+[+]] [boardspec]\n",
+ getprogname());
exit(1);
}