diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-10 14:38:47 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-10 14:38:47 +0000 |
commit | 82d38dab917754c9c37aaa7e414a47318b5082fe (patch) | |
tree | ea00ffed0879edb0f2dce87953d6f9c5908a18bf /libbb/appletlib.c | |
parent | 141750e38897900db98eaeab1ea35c18f5794023 (diff) | |
download | busybox-w32-82d38dab917754c9c37aaa7e414a47318b5082fe.tar.gz busybox-w32-82d38dab917754c9c37aaa7e414a47318b5082fe.tar.bz2 busybox-w32-82d38dab917754c9c37aaa7e414a47318b5082fe.zip |
get rid of global "struct bb_applet *current_applet"
Diffstat (limited to 'libbb/appletlib.c')
-rw-r--r-- | libbb/appletlib.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index 565dacf36..cfa60a940 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c | |||
@@ -133,7 +133,10 @@ void bbox_prepare_main(char **argv) | |||
133 | if (ENABLE_LOCALE_SUPPORT && getpid() != 1) | 133 | if (ENABLE_LOCALE_SUPPORT && getpid() != 1) |
134 | setlocale(LC_ALL, ""); | 134 | setlocale(LC_ALL, ""); |
135 | 135 | ||
136 | /* Redundant for busybox, but needed for individual applets */ | 136 | #if ENABLE_FEATURE_INDIVIDUAL |
137 | /* Redundant for busybox (run_applet_and_exit covers that case) | ||
138 | * but needed for "individual applet" mode */ | ||
137 | if (argv[1] && strcmp(argv[1], "--help") == 0) | 139 | if (argv[1] && strcmp(argv[1], "--help") == 0) |
138 | bb_show_usage(); | 140 | bb_show_usage(); |
141 | #endif | ||
139 | } | 142 | } |