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

This commit is contained in:
delphij 2009-02-21 03:50:25 +00:00
parent c36f13a958
commit 03f1dea526

View File

@ -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;