several *.c files:

move 'extern environ' up to the location of #includes
This commit is contained in:
Denis Vlasenko
2007-05-17 23:02:14 +00:00
parent cd5c7866e3
commit 5b34083004
5 changed files with 7 additions and 7 deletions

View File

@@ -32,6 +32,7 @@
#include "busybox.h"
#include <errno.h>
#include <getopt.h> /* struct option */
extern char **environ;
#if ENABLE_FEATURE_ENV_LONG_OPTIONS
static const struct option env_long_options[] = {
@@ -49,7 +50,6 @@ int env_main(int argc, char** argv)
char **ep;
unsigned opt;
llist_t *unset_env = NULL;
extern char **environ;
opt_complementary = "u::";
#if ENABLE_FEATURE_ENV_LONG_OPTIONS

View File

@@ -12,11 +12,11 @@
#include <string.h>
#include <stdlib.h>
#include "busybox.h"
extern char **environ;
int printenv_main(int argc, char **argv);
int printenv_main(int argc, char **argv)
{
extern char **environ;
int e = 0;
/* no variables specified, show whole env */