svn commit: trunk/busybox: applets libbb
vda at busybox.net
vda at busybox.net
Fri Feb 22 22:43:22 UTC 2008
Author: vda
Date: 2008-02-22 14:43:22 -0800 (Fri, 22 Feb 2008)
New Revision: 21088
Log:
small code readability and typo fixes
Modified:
trunk/busybox/applets/applet_tables.c
trunk/busybox/libbb/appletlib.c
Changeset:
Modified: trunk/busybox/applets/applet_tables.c
===================================================================
--- trunk/busybox/applets/applet_tables.c 2008-02-22 22:24:48 UTC (rev 21087)
+++ trunk/busybox/applets/applet_tables.c 2008-02-22 22:43:22 UTC (rev 21088)
@@ -32,7 +32,7 @@
/* 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 @@
+ (applets[i].noexec << 13)
#endif
#if ENABLE_FEATURE_SUID
- + (applets[i].need_suid << 14) /* 2 bits */
+ + (applets[i].need_suid << 14) /* 2 bits */
#endif
);
}
Modified: trunk/busybox/libbb/appletlib.c
===================================================================
--- trunk/busybox/libbb/appletlib.c 2008-02-22 22:24:48 UTC (rev 21087)
+++ trunk/busybox/libbb/appletlib.c 2008-02-22 22:43:22 UTC (rev 21088)
@@ -34,7 +34,7 @@
#endif /* SHOW_USAGE */
-/* Include generated applet names, pointers to <apllet>_main, etc */
+/* Include generated applet names, pointers to <applet>_main, etc */
#include "applet_tables.h"
More information about the busybox-cvs
mailing list