Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/env de-__P, add ANSI prototypes, and a teeny bit of ...



details:   https://anonhg.NetBSD.org/src/rev/9db53cd230fb
branches:  trunk
changeset: 586846:9db53cd230fb
user:      perry <perry%NetBSD.org@localhost>
date:      Wed Jan 04 01:05:19 2006 +0000

description:
de-__P, add ANSI prototypes, and a teeny bit of KNF.

diffstat:

 usr.bin/env/env.c |  16 +++++++---------
 1 files changed, 7 insertions(+), 9 deletions(-)

diffs (43 lines):

diff -r 648efd00b559 -r 9db53cd230fb usr.bin/env/env.c
--- a/usr.bin/env/env.c Wed Jan 04 00:15:50 2006 +0000
+++ b/usr.bin/env/env.c Wed Jan 04 01:05:19 2006 +0000
@@ -35,7 +35,7 @@
 
 #ifndef lint
 /*static char sccsid[] = "@(#)env.c    8.3 (Berkeley) 4/2/94";*/
-__RCSID("$NetBSD: env.c,v 1.15 2003/08/07 11:13:35 agc Exp $");
+__RCSID("$NetBSD: env.c,v 1.16 2006/01/04 01:05:19 perry Exp $");
 #endif /* not lint */
 
 #include <err.h>
@@ -46,15 +46,13 @@
 #include <locale.h>
 #include <errno.h>
 
-int    main __P((int, char **));
-static void usage __P((void));
+int    main(int, char **);
+static void usage(void);
 
 extern char **environ;
 
 int
-main(argc, argv)
-       int argc;
-       char **argv;
+main(int argc, char **argv)
 {
        char **ep, *p;
        char *cleanenv[1];
@@ -93,8 +91,8 @@
 }
 
 static void
-usage ()
+usage(void)
 {
-       (void) fprintf(stderr, "usage: env [-i] [name=value ...] [command]\n");
-       exit (1);
+       (void)fprintf(stderr, "usage: env [-i] [name=value ...] [command]\n");
+       exit(1);
 }



Home | Main Index | Thread Index | Old Index