From 9c99fe6ab5c1566b4b98c5edcc5c1100d3ca49fa Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 2 Sep 2014 08:58:24 +0100 Subject: [PATCH] Provide ARRAY_SIZE No call sites yet. Signed-off-by: Ian Jackson --- secnet.h | 1 + 1 file changed, 1 insertion(+) diff --git a/secnet.h b/secnet.h index 78dc676..5c97751 100644 --- a/secnet.h +++ b/secnet.h @@ -574,6 +574,7 @@ extern void log_from_fd(int fd, cstring_t prefix, struct log_if *log); #define STRING(x) STRING2(x) #define FILLZERO(obj) (memset(&(obj),0,sizeof((obj)))) +#define ARRAY_SIZE(ary) (sizeof((ary))/sizeof((ary)[0])) /* * void COPY_OBJ( OBJECT& dst, const OBJECT& src); -- 2.30.2