summaryrefslogtreecommitdiffstats
path: root/tetris
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 /tetris
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 'tetris')
-rw-r--r--tetris/tetris.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tetris/tetris.c b/tetris/tetris.c
index 9584026a..7202cb31 100644
--- a/tetris/tetris.c
+++ b/tetris/tetris.c
@@ -1,4 +1,4 @@
-/* $NetBSD: tetris.c,v 1.22 2009/08/12 08:51:21 dholland Exp $ */
+/* $NetBSD: tetris.c,v 1.23 2010/12/05 04:34:23 pgoyette Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -328,6 +328,7 @@ onintr(int signo __unused)
static void
usage(void)
{
- (void)fprintf(stderr, "usage: tetris [-ps] [-k keys] [-l level]\n");
+ (void)fprintf(stderr, "usage: %s [-ps] [-k keys] [-l level]\n",
+ getprogname());
exit(1);
}