diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-13 20:44:05 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-13 20:44:05 +0000 |
commit | 21765fa063830923d13426ec6989c16da9210e49 (patch) | |
tree | b564726ae79740552bff9bf6412e97f1ae34fbfd /applets | |
parent | 76f812803b72b5ccca764cdc7bfc42276fd70413 (diff) | |
download | busybox-w32-21765fa063830923d13426ec6989c16da9210e49.tar.gz busybox-w32-21765fa063830923d13426ec6989c16da9210e49.tar.bz2 busybox-w32-21765fa063830923d13426ec6989c16da9210e49.zip |
udhcpc: kill undocumented -W, it was a no-op.
fix option parsing in the case some CONFIG_x are off.
disable -b on NOMMU, make backgrounding work correctly
(if a bit differently from MMU case). Previously,
it wasn't working at all.
stop using global data for flags in main(), opt
bitfield works as well.
function old new delta
cryptpw_main 177 153 -24
packed_usage 24478 24452 -26
client_background 26 - -26
udhcpc_main 2462 2372 -90
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/3 up/down: 0/-166) Total: -166 bytes
Diffstat (limited to 'applets')
-rw-r--r-- | applets/usage.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/applets/usage.c b/applets/usage.c index 4f6a569d4..a35817f9f 100644 --- a/applets/usage.c +++ b/applets/usage.c | |||
@@ -5,6 +5,17 @@ | |||
5 | * object directory */ | 5 | * object directory */ |
6 | #include "../include/autoconf.h" | 6 | #include "../include/autoconf.h" |
7 | 7 | ||
8 | /* Since we can't use platform.h, have to do this again by hand: */ | ||
9 | #if ENABLE_NOMMU | ||
10 | #define BB_MMU 0 | ||
11 | #define USE_FOR_NOMMU(...) __VA_ARGS__ | ||
12 | #define USE_FOR_MMU(...) | ||
13 | #else | ||
14 | #define BB_MMU 1 | ||
15 | #define USE_FOR_NOMMU(...) | ||
16 | #define USE_FOR_MMU(...) __VA_ARGS__ | ||
17 | #endif | ||
18 | |||
8 | static const char usage_messages[] = "" | 19 | static const char usage_messages[] = "" |
9 | #define MAKE_USAGE | 20 | #define MAKE_USAGE |
10 | #include "usage.h" | 21 | #include "usage.h" |