summaryrefslogtreecommitdiffstats
path: root/usr.bin/printenv
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2009-02-21 03:50:25 +0000
committerdelphij <delphij@FreeBSD.org>2009-02-21 03:50:25 +0000
commit03f1dea526473bb679e3c8433ebeca052279722e (patch)
treec587f153453ccd544bcaa2af3009e81b98cbec70 /usr.bin/printenv
parentc36f13a9588beb76234db3bb71c93381e34f8efd (diff)
downloadFreeBSD-src-03f1dea526473bb679e3c8433ebeca052279722e.zip
FreeBSD-src-03f1dea526473bb679e3c8433ebeca052279722e.tar.gz
Define extern **environ in global scope instead of in function.
Diffstat (limited to 'usr.bin/printenv')
-rw-r--r--usr.bin/printenv/printenv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/printenv/printenv.c b/usr.bin/printenv/printenv.c
index 8ad23c7..03257f5 100644
--- a/usr.bin/printenv/printenv.c
+++ b/usr.bin/printenv/printenv.c
@@ -1,4 +1,4 @@
-/*
+/*-
* Copyright (c) 1987, 1993
* The Regents of the University of California. All rights reserved.
*
@@ -54,6 +54,7 @@ __FBSDID("$FreeBSD$");
#include <unistd.h>
void usage(void);
+extern char **environ;
/*
* printenv
@@ -64,7 +65,6 @@ void usage(void);
int
main(int argc, char *argv[])
{
- extern char **environ;
char *cp, **ep;
size_t len;
int ch;
OpenPOWER on IntegriCloud