summaryrefslogtreecommitdiffstats
path: root/canfield
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2010-01-03 17:08:45 +0000
committerdholland <dholland@NetBSD.org>2010-01-03 17:08:45 +0000
commit799f78f1e7625a3625d8ed2aa36d097b62f765b8 (patch)
tree84565b30fffd412c6b30dce6390e1b7998b0a79c /canfield
parentea7e646063d2a42170a39dc40fd2b96f103fd974 (diff)
downloadbsdgames-darwin-799f78f1e7625a3625d8ed2aa36d097b62f765b8.tar.gz
bsdgames-darwin-799f78f1e7625a3625d8ed2aa36d097b62f765b8.tar.zst
bsdgames-darwin-799f78f1e7625a3625d8ed2aa36d097b62f765b8.zip
Christos points out that usage should not use errx, but should use
getprogname.
Diffstat (limited to 'canfield')
-rw-r--r--canfield/cfscores/cfscores.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/canfield/cfscores/cfscores.c b/canfield/cfscores/cfscores.c
index 33f6e97f..b1c60ab0 100644
--- a/canfield/cfscores/cfscores.c
+++ b/canfield/cfscores/cfscores.c
@@ -1,4 +1,4 @@
-/* $NetBSD: cfscores.c,v 1.20 2010/01/01 06:37:16 dholland Exp $ */
+/* $NetBSD: cfscores.c,v 1.21 2010/01/03 17:08:45 dholland Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\
#if 0
static char sccsid[] = "@(#)cfscores.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: cfscores.c,v 1.20 2010/01/01 06:37:16 dholland Exp $");
+__RCSID("$NetBSD: cfscores.c,v 1.21 2010/01/03 17:08:45 dholland Exp $");
#endif
#endif /* not lint */
@@ -68,7 +68,9 @@ main(int argc, char *argv[])
setgid(getgid());
if (argc > 2) {
- errx(1, "Usage: cfscores -a | cfscores [user]");
+ fprintf(stderr, "Usage: %s -a | %s [user]\n",
+ getprogname(), getprogname());
+ exit(1);
}
dbfd = open(_PATH_SCORE, O_RDONLY);
if (dbfd < 0)