]> git.ozlabs.org Git - ccan/commitdiff
Use array_size module
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 25 Feb 2009 00:41:34 +0000 (11:11 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 25 Feb 2009 00:41:34 +0000 (11:11 +1030)
tools/run_tests.c

index 380055c0259a8bc8d393ba0b4edbfcf11a43597d..278b65227a3bdeddbe9631c116c5e31a8b643cd5 100644 (file)
@@ -9,11 +9,9 @@
 #include "ccan/tap/tap.h"
 #include "ccan/talloc/talloc.h"
 #include "ccan/str/str.h"
 #include "ccan/tap/tap.h"
 #include "ccan/talloc/talloc.h"
 #include "ccan/str/str.h"
+#include "ccan/array_size/array_size.h"
 #include "tools.h"
 
 #include "tools.h"
 
-/* FIXME: Use build bug later. */
-#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
-
 static struct test *tests = NULL;
 static struct obj *objs = NULL;
 static int verbose;
 static struct test *tests = NULL;
 static struct obj *objs = NULL;
 static int verbose;