diff options
Diffstat (limited to 'applets')
-rw-r--r-- | applets/applet_tables.c | 4 |
1 files changed, 2 insertions, 2 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 | } |