summaryrefslogtreecommitdiffstats
path: root/games/pom/pom.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/pom/pom.c')
-rw-r--r--games/pom/pom.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/games/pom/pom.c b/games/pom/pom.c
index f333bec..5f18bb3 100644
--- a/games/pom/pom.c
+++ b/games/pom/pom.c
@@ -86,6 +86,7 @@ main(int argc, char **argv)
double days, today, tomorrow;
int ch, cnt, pflag = 0;
char *odate = NULL, *otime = NULL;
+ char *progname = argv[0];
while ((ch = getopt(argc, argv, "d:pt:")) != -1)
switch (ch) {
@@ -99,14 +100,14 @@ main(int argc, char **argv)
otime = optarg;
break;
default:
- usage(argv[0]);
+ usage(progname);
}
argc -= optind;
argv += optind;
if (argc)
- usage(argv[0]);
+ usage(progname);
/* Adjust based on users preferences */
time(&tt);
OpenPOWER on IntegriCloud