diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-11-28 06:49:03 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-11-28 06:49:03 +0000 |
commit | 1aa7e477b1b727db77cac2d717f0fcca40587f78 (patch) | |
tree | 247171517f0e01d32a71a5e96f4bef462cc0e9c6 /shell/lash_unused.c | |
parent | 79c6904faff1ebd4bf4b7d9cd0c20ca70f4cec75 (diff) | |
download | busybox-w32-1aa7e477b1b727db77cac2d717f0fcca40587f78.tar.gz busybox-w32-1aa7e477b1b727db77cac2d717f0fcca40587f78.tar.bz2 busybox-w32-1aa7e477b1b727db77cac2d717f0fcca40587f78.zip |
reorganize applet table. Eliminates pointers to names.
Should be a big win for libbusybox. busybox wins too:
text data bss dec hex filename
776524 929 9100 786553 c0079 busybox_old
775903 929 9100 785932 bfe0c busybox_unstripped
Diffstat (limited to 'shell/lash_unused.c')
-rw-r--r-- | shell/lash_unused.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/lash_unused.c b/shell/lash_unused.c index 781dfdb5a..10a9120e2 100644 --- a/shell/lash_unused.c +++ b/shell/lash_unused.c | |||
@@ -23,7 +23,7 @@ | |||
23 | #include <getopt.h> | 23 | #include <getopt.h> |
24 | #include <glob.h> | 24 | #include <glob.h> |
25 | 25 | ||
26 | #include "busybox.h" /* for struct bb_applet */ | 26 | #include "libbb.h" |
27 | 27 | ||
28 | #define expand_t glob_t | 28 | #define expand_t glob_t |
29 | 29 | ||
@@ -1253,8 +1253,8 @@ static int run_command(struct job *newjob, int inbg, int outpipe[2]) | |||
1253 | } | 1253 | } |
1254 | #if ENABLE_FEATURE_SH_STANDALONE | 1254 | #if ENABLE_FEATURE_SH_STANDALONE |
1255 | { | 1255 | { |
1256 | const struct bb_applet *a = find_applet_by_name(child->argv[i]); | 1256 | int a = find_applet_by_name(child->argv[i]); |
1257 | if (a && a->nofork) { | 1257 | if (a >= 0 && APPLET_IS_NOFORK(a)) { |
1258 | setup_redirects(child, squirrel); | 1258 | setup_redirects(child, squirrel); |
1259 | rcode = run_nofork_applet(a, child->argv + i); | 1259 | rcode = run_nofork_applet(a, child->argv + i); |
1260 | restore_redirects(squirrel); | 1260 | restore_redirects(squirrel); |