aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2009-02-21 03:50:25 +0000
committerXin LI <delphij@FreeBSD.org>2009-02-21 03:50:25 +0000
commita751987ad5ab063e3090f7139d06376de254fb50 (patch)
treec587f153453ccd544bcaa2af3009e81b98cbec70 /usr.bin
parent61613f19123cd431e20f4c70b7ccdd66c1f1cca4 (diff)
downloadsrc-a751987ad5ab063e3090f7139d06376de254fb50.tar.gz
src-a751987ad5ab063e3090f7139d06376de254fb50.zip
Define extern **environ in global scope instead of in function.
Notes
Notes: svn path=/head/; revision=188889
Diffstat (limited to 'usr.bin')
-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 8ad23c7454da..03257f5d41f2 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;