diff options
Diffstat (limited to 'coreutils/env.c')
-rw-r--r-- | coreutils/env.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/coreutils/env.c b/coreutils/env.c index ad30f0193..8d20eac9c 100644 --- a/coreutils/env.c +++ b/coreutils/env.c | |||
@@ -35,11 +35,10 @@ extern char **environ; | |||
35 | #include "libbb.h" | 35 | #include "libbb.h" |
36 | 36 | ||
37 | #if ENABLE_FEATURE_ENV_LONG_OPTIONS | 37 | #if ENABLE_FEATURE_ENV_LONG_OPTIONS |
38 | static const struct option env_long_options[] = { | 38 | static const char env_longopts[] = |
39 | { "ignore-environment", 0, NULL, 'i' }, | 39 | "ignore-environment\0" No_argument "i" |
40 | { "unset", 1, NULL, 'u' }, | 40 | "unset\0" Required_argument "u" |
41 | { 0, 0, 0, 0 } | 41 | "\0"; |
42 | }; | ||
43 | #endif | 42 | #endif |
44 | 43 | ||
45 | int env_main(int argc, char** argv); | 44 | int env_main(int argc, char** argv); |
@@ -53,7 +52,7 @@ int env_main(int argc, char** argv) | |||
53 | 52 | ||
54 | opt_complementary = "u::"; | 53 | opt_complementary = "u::"; |
55 | #if ENABLE_FEATURE_ENV_LONG_OPTIONS | 54 | #if ENABLE_FEATURE_ENV_LONG_OPTIONS |
56 | applet_long_options = env_long_options; | 55 | applet_long_options = env_longopts; |
57 | #endif | 56 | #endif |
58 | opt = getopt32(argc, argv, "+iu:", &unset_env); | 57 | opt = getopt32(argc, argv, "+iu:", &unset_env); |
59 | argv += optind; | 58 | argv += optind; |