diff options
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/env.c | 2 | ||||
-rw-r--r-- | coreutils/printenv.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/env.c b/coreutils/env.c index f47d450c5..2a271f703 100644 --- a/coreutils/env.c +++ b/coreutils/env.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include "busybox.h" | 32 | #include "busybox.h" |
33 | #include <errno.h> | 33 | #include <errno.h> |
34 | #include <getopt.h> /* struct option */ | 34 | #include <getopt.h> /* struct option */ |
35 | extern char **environ; | ||
35 | 36 | ||
36 | #if ENABLE_FEATURE_ENV_LONG_OPTIONS | 37 | #if ENABLE_FEATURE_ENV_LONG_OPTIONS |
37 | static const struct option env_long_options[] = { | 38 | static const struct option env_long_options[] = { |
@@ -49,7 +50,6 @@ int env_main(int argc, char** argv) | |||
49 | char **ep; | 50 | char **ep; |
50 | unsigned opt; | 51 | unsigned opt; |
51 | llist_t *unset_env = NULL; | 52 | llist_t *unset_env = NULL; |
52 | extern char **environ; | ||
53 | 53 | ||
54 | opt_complementary = "u::"; | 54 | opt_complementary = "u::"; |
55 | #if ENABLE_FEATURE_ENV_LONG_OPTIONS | 55 | #if ENABLE_FEATURE_ENV_LONG_OPTIONS |
diff --git a/coreutils/printenv.c b/coreutils/printenv.c index 1d41eeb7b..935f52df3 100644 --- a/coreutils/printenv.c +++ b/coreutils/printenv.c | |||
@@ -12,11 +12,11 @@ | |||
12 | #include <string.h> | 12 | #include <string.h> |
13 | #include <stdlib.h> | 13 | #include <stdlib.h> |
14 | #include "busybox.h" | 14 | #include "busybox.h" |
15 | extern char **environ; | ||
15 | 16 | ||
16 | int printenv_main(int argc, char **argv); | 17 | int printenv_main(int argc, char **argv); |
17 | int printenv_main(int argc, char **argv) | 18 | int printenv_main(int argc, char **argv) |
18 | { | 19 | { |
19 | extern char **environ; | ||
20 | int e = 0; | 20 | int e = 0; |
21 | 21 | ||
22 | /* no variables specified, show whole env */ | 22 | /* no variables specified, show whole env */ |