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. --- pom/pom.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'pom') diff --git a/pom/pom.c b/pom/pom.c index f4267d0c..91ed3f0d 100644 --- a/pom/pom.c +++ b/pom/pom.c @@ -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); } -- cgit v1.2.3-56-ge451