From 32b2a9fd6a758602b149248bef8963466b05a088 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 22 Feb 2008 22:43:22 +0000 Subject: small code readability and typo fixes --- applets/applet_tables.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'applets') 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 { /* Define struct bb_applet applets[] */ #include "../include/applets.h" -enum { NUM_APPLETS = sizeof(applets)/sizeof(applets[0]) }; +enum { NUM_APPLETS = ARRAY_SIZE(applets) }; static int offset[NUM_APPLETS]; @@ -92,7 +92,7 @@ int main(int argc, char **argv) + (applets[i].noexec << 13) #endif #if ENABLE_FEATURE_SUID - + (applets[i].need_suid << 14) /* 2 bits */ + + (applets[i].need_suid << 14) /* 2 bits */ #endif ); } -- cgit v1.2.3