Module Name: src
Committed By: joerg
Date: Sun Sep 4 20:29:12 UTC 2011
Modified Files:
src/usr.bin/logname: logname.c
Log Message:
ANSIfy + static + __dead
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/usr.bin/logname/logname.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/logname/logname.c
diff -u src/usr.bin/logname/logname.c:1.9 src/usr.bin/logname/logname.c:1.10
--- src/usr.bin/logname/logname.c:1.9 Mon Jul 21 14:19:23 2008
+++ src/usr.bin/logname/logname.c Sun Sep 4 20:29:12 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: logname.c,v 1.9 2008/07/21 14:19:23 lukem Exp $ */
+/* $NetBSD: logname.c,v 1.10 2011/09/04 20:29:12 joerg Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)logname.c 8.2 (Berkeley) 4/3/94";
#endif
-__RCSID("$NetBSD: logname.c,v 1.9 2008/07/21 14:19:23 lukem Exp $");
+__RCSID("$NetBSD: logname.c,v 1.10 2011/09/04 20:29:12 joerg Exp $");
#endif /* not lint */
#include <stdio.h>
@@ -48,13 +48,10 @@
#include <unistd.h>
#include <err.h>
-int main __P((int, char **));
-void usage __P((void));
+__dead static void usage(void);
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
int ch;
char *p;
@@ -80,8 +77,8 @@
exit(0);
}
-void
-usage()
+static void
+usage(void)
{
(void)fprintf(stderr, "usage: logname\n");
exit(1);