de-__P() and ANSIfy; no functional change
This commit is contained in:
parent
6263c6ea9c
commit
6d977e7b2a
|
@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1987, 1993\
|
|||
|
||||
#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 @@ __RCSID("$NetBSD: printenv.c,v 1.10 2009/07/25 08:18:33 dholland Exp $");
|
|||
#include <unistd.h>
|
||||
#include <err.h>
|
||||
|
||||
int main __P((int, char **));
|
||||
void usage __P((void));
|
||||
void usage(void);
|
||||
|
||||
/*
|
||||
* printenv
|
||||
|
@ -58,9 +57,7 @@ void usage __P((void));
|
|||
* 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 @@ main(argc, argv)
|
|||
}
|
||||
|
||||
void
|
||||
usage()
|
||||
usage(void)
|
||||
{
|
||||
(void)fprintf(stderr, "Usage: printenv [name]\n");
|
||||
exit(1);
|
||||
|
|
Loading…
Reference in New Issue