Browse Source

Use array_size module

Rusty Russell 17 years ago
parent
commit
504c6dab8d
1 changed files with 1 additions and 3 deletions
  1. 1 3
      tools/run_tests.c

+ 1 - 3
tools/run_tests.c

@@ -9,11 +9,9 @@
 #include "ccan/tap/tap.h"
 #include "ccan/tap/tap.h"
 #include "ccan/talloc/talloc.h"
 #include "ccan/talloc/talloc.h"
 #include "ccan/str/str.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 test *tests = NULL;
 static struct obj *objs = NULL;
 static struct obj *objs = NULL;
 static int verbose;
 static int verbose;