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. --- tetris/tetris.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tetris') 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); } -- cgit v1.2.3-56-ge451