Module Name:    src
Committed By:   dholland
Date:           Sat Jul 25 08:20:25 UTC 2009

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

Log Message:
de-__P() and ANSIfy; no functional change


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/usr.bin/printenv/printenv.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/printenv/printenv.c
diff -u src/usr.bin/printenv/printenv.c:1.10 src/usr.bin/printenv/printenv.c:1.11
--- src/usr.bin/printenv/printenv.c:1.10	Sat Jul 25 08:18:33 2009
+++ src/usr.bin/printenv/printenv.c	Sat Jul 25 08:20:24 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: printenv.c,v 1.10 2009/07/25 08:18:33 dholland Exp $	*/
+/*	$NetBSD: printenv.c,v 1.11 2009/07/25 08:20:24 dholland Exp $	*/
 
 /*
  * Copyright (c) 1987, 1993
@@ -37,7 +37,7 @@
 
 #ifndef lint
 /*static char sccsid[] = "from: @(#)printenv.c	8.2 (Berkeley) 5/4/95";*/
-__RCSID("$NetBSD: printenv.c,v 1.10 2009/07/25 08:18:33 dholland Exp $");
+__RCSID("$NetBSD: printenv.c,v 1.11 2009/07/25 08:20:24 dholland Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -48,8 +48,7 @@
 #include <unistd.h>
 #include <err.h>
 
-int	main __P((int, char **));
-void	usage __P((void));
+void usage(void);
 
 /*
  * printenv
@@ -58,9 +57,7 @@
  * February, 1979
  */
 int
-main(argc, argv)
-	int argc;
-	char *argv[];
+main(int argc, char *argv[])
 {
 	extern char **environ;
 	char *cp, **ep;
@@ -98,7 +95,7 @@
 }
 
 void
-usage()
+usage(void)
 {
 	(void)fprintf(stderr, "Usage: printenv [name]\n");
 	exit(1);

Reply via email to