projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a16a125
)
Use array_size module
author
Rusty Russell
<rusty@rustcorp.com.au>
Wed, 25 Feb 2009 00:41:34 +0000
(11:11 +1030)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Wed, 25 Feb 2009 00:41:34 +0000
(11:11 +1030)
tools/run_tests.c
patch
|
blob
|
history
diff --git
a/tools/run_tests.c
b/tools/run_tests.c
index 380055c0259a8bc8d393ba0b4edbfcf11a43597d..278b65227a3bdeddbe9631c116c5e31a8b643cd5 100644
(file)
--- a/
tools/run_tests.c
+++ b/
tools/run_tests.c
@@
-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;