svn commit: r188889 - head/usr.bin/printenv

Xin LI delphij at FreeBSD.org
Fri Feb 20 19:50:26 PST 2009


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;


More information about the svn-src-head mailing list