From: Rusty Russell Date: Wed, 25 Feb 2009 00:41:34 +0000 (+1030) Subject: Use array_size module X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=504c6dab8d2c94575f14ccb542af7433936e7af2 Use array_size module --- diff --git a/tools/run_tests.c b/tools/run_tests.c index 380055c0..278b6522 100644 --- 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;