diff options
author | pgoyette <pgoyette@NetBSD.org> | 2010-12-05 04:34:22 +0000 |
---|---|---|
committer | pgoyette <pgoyette@NetBSD.org> | 2010-12-05 04:34:22 +0000 |
commit | ea061499cfca6ed03384392d6972b6527402a242 (patch) | |
tree | b79d765a910ae7f5543e902a5e680c336194aa1d /pom | |
parent | 7a7613e47c9abc7a70376d4a03f021988f49899e (diff) | |
download | bsdgames-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 'pom')
-rw-r--r-- | pom/pom.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $NetBSD: pom.c,v 1.19 2009/08/12 08:23:20 dholland Exp $ */ +/* $NetBSD: pom.c,v 1.20 2010/12/05 04:34:22 pgoyette Exp $ */ /* * Copyright (c) 1989, 1993 @@ -41,7 +41,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\ #if 0 static char sccsid[] = "@(#)pom.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: pom.c,v 1.19 2009/08/12 08:23:20 dholland Exp $"); +__RCSID("$NetBSD: pom.c,v 1.20 2010/12/05 04:34:22 pgoyette Exp $"); #endif #endif /* not lint */ @@ -272,6 +272,7 @@ static void badformat(void) { warnx("illegal time format"); - (void)fprintf(stderr, "usage: pom [[[[[cc]yy]mm]dd]HH]\n"); + (void)fprintf(stderr, "usage: %s [[[[[cc]yy]mm]dd]HH]\n", + getprogname()); exit(EXIT_FAILURE); } |