Module Name:    src
Committed By:   joerg
Date:           Tue Sep  6 18:45:49 UTC 2011

Modified Files:
        src/usr.bin/what: what.c

Log Message:
ANSIfy, static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/usr.bin/what/what.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/what/what.c
diff -u src/usr.bin/what/what.c:1.10 src/usr.bin/what/what.c:1.11
--- src/usr.bin/what/what.c:1.10	Mon Jul 21 14:19:28 2008
+++ src/usr.bin/what/what.c	Tue Sep  6 18:45:49 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: what.c,v 1.10 2008/07/21 14:19:28 lukem Exp $	*/
+/*	$NetBSD: what.c,v 1.11 2011/09/06 18:45:49 joerg Exp $	*/
 
 /*
  * Copyright (c) 1980, 1988, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)what.c	8.1 (Berkeley) 6/6/93";
 #endif
-__RCSID("$NetBSD: what.c,v 1.10 2008/07/21 14:19:28 lukem Exp $");
+__RCSID("$NetBSD: what.c,v 1.11 2011/09/06 18:45:49 joerg Exp $");
 #endif /* not lint */
 
 #include <locale.h>
@@ -47,9 +47,8 @@
 #include <stdlib.h>
 #include <unistd.h>
 
-int main __P((int, char **));
-static void search __P((void));
-static void usage __P((void));
+static void search(void);
+__dead static void usage(void);
 
 static int matches;
 static int sflag;
@@ -59,9 +58,7 @@
  */
 /* ARGSUSED */
 int
-main(argc, argv)
-	int argc;
-	char **argv;
+main(int argc, char **argv)
 {
 	int c;
 
@@ -98,7 +95,7 @@
 }
 
 static void
-search()
+search(void)
 {
 	int c;
 
@@ -123,7 +120,7 @@
 }
 
 static void
-usage()
+usage(void)
 {
 
 	(void)fprintf(stderr, "usage: what [-s] file ...\n");

Reply via email to