]> git.ozlabs.org Git - ccan/blobdiff - tools/run_tests.c
Use array_size module
[ccan] / 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/array_size/array_size.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;