From a751987ad5ab063e3090f7139d06376de254fb50 Mon Sep 17 00:00:00 2001 From: Xin LI Date: Sat, 21 Feb 2009 03:50:25 +0000 Subject: [PATCH] Define extern **environ in global scope instead of in function. --- usr.bin/printenv/printenv.c | 4 ++-- 1 file 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 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;