small code readability and typo fixes
[oweals/busybox.git] / applets / applet_tables.c
index 3353f36627ac8e1b0286c5a9f7653308fde13df4..6c3492b4df149c30d5210f45dfb0202e4b493c12 100644 (file)
@@ -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
                );
        }