Author: delphij
Date: Sat Feb 21 03:50:25 2009
New Revision: 188889
URL: http://svn.freebsd.org/changeset/base/188889

Log:
  Define extern **environ in global scope instead of in function.

Modified:
  head/usr.bin/printenv/printenv.c

Modified: head/usr.bin/printenv/printenv.c
==============================================================================
--- head/usr.bin/printenv/printenv.c    Sat Feb 21 03:43:20 2009        
(r188888)
+++ head/usr.bin/printenv/printenv.c    Sat Feb 21 03:50:25 2009        
(r188889)
@@ -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;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to