diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-22 22:43:22 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-22 22:43:22 +0000 |
commit | 32b2a9fd6a758602b149248bef8963466b05a088 (patch) | |
tree | 0bbff4371dd4ccf8920e8052ddbbbf2b098b9df6 | |
parent | 68444b9f0c74e94d219fa40bb4109b4aa2fdd43b (diff) | |
download | busybox-w32-32b2a9fd6a758602b149248bef8963466b05a088.tar.gz busybox-w32-32b2a9fd6a758602b149248bef8963466b05a088.tar.bz2 busybox-w32-32b2a9fd6a758602b149248bef8963466b05a088.zip |
small code readability and typo fixes
-rw-r--r-- | applets/applet_tables.c | 4 | ||||
-rw-r--r-- | libbb/appletlib.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/applets/applet_tables.c b/applets/applet_tables.c index 3353f3662..6c3492b4d 100644 --- a/applets/applet_tables.c +++ b/applets/applet_tables.c | |||
@@ -32,7 +32,7 @@ struct bb_applet { | |||
32 | /* Define struct bb_applet applets[] */ | 32 | /* Define struct bb_applet applets[] */ |
33 | #include "../include/applets.h" | 33 | #include "../include/applets.h" |
34 | 34 | ||
35 | enum { NUM_APPLETS = sizeof(applets)/sizeof(applets[0]) }; | 35 | enum { NUM_APPLETS = ARRAY_SIZE(applets) }; |
36 | 36 | ||
37 | static int offset[NUM_APPLETS]; | 37 | static int offset[NUM_APPLETS]; |
38 | 38 | ||
@@ -92,7 +92,7 @@ int main(int argc, char **argv) | |||
92 | + (applets[i].noexec << 13) | 92 | + (applets[i].noexec << 13) |
93 | #endif | 93 | #endif |
94 | #if ENABLE_FEATURE_SUID | 94 | #if ENABLE_FEATURE_SUID |
95 | + (applets[i].need_suid << 14) /* 2 bits */ | 95 | + (applets[i].need_suid << 14) /* 2 bits */ |
96 | #endif | 96 | #endif |
97 | ); | 97 | ); |
98 | } | 98 | } |
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index 993618e98..793e3dc96 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c | |||
@@ -34,7 +34,7 @@ static const char usage_messages[] ALIGN1 = "" | |||
34 | #endif /* SHOW_USAGE */ | 34 | #endif /* SHOW_USAGE */ |
35 | 35 | ||
36 | 36 | ||
37 | /* Include generated applet names, pointers to <apllet>_main, etc */ | 37 | /* Include generated applet names, pointers to <applet>_main, etc */ |
38 | #include "applet_tables.h" | 38 | #include "applet_tables.h" |
39 | 39 | ||
40 | 40 | ||