On Friday 22 February 2008 19:08, walter harms wrote:
> 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];
Applied, thanks.
--
vda
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox