patch: applet_tables.c
walter harms
WHarms at bfs.de
Fri Feb 22 18:08:57 UTC 2008
code cleanup
Applet_tables should make use of the ARRAY_SIZE macro.
--- applets/applet_tables.c.org 2008-02-22 19:06:25.000000000 +0100
+++ applets/applet_tables.c 2008-02-22 19:05:53.000000000 +0100
@@ -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];
More information about the busybox
mailing list