Module Name:    src
Committed By:   dholland
Date:           Sun Jan  3 17:08:45 UTC 2010

Modified Files:
        src/games/canfield/cfscores: cfscores.c

Log Message:
Christos points out that usage should not use errx, but should use
getprogname.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/games/canfield/cfscores/cfscores.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/games/canfield/cfscores/cfscores.c
diff -u src/games/canfield/cfscores/cfscores.c:1.20 src/games/canfield/cfscores/cfscores.c:1.21
--- src/games/canfield/cfscores/cfscores.c:1.20	Fri Jan  1 06:37:16 2010
+++ src/games/canfield/cfscores/cfscores.c	Sun Jan  3 17:08:45 2010
@@ -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 @@
 #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 @@
 	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)

Reply via email to