From ea061499cfca6ed03384392d6972b6527402a242 Mon Sep 17 00:00:00 2001 From: pgoyette Date: Sun, 5 Dec 2010 04:34:22 +0000 Subject: 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. --- boggle/boggle/bog.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'boggle') 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); } -- cgit v1.2.3-56-ge451