Macro nitems is already defined into sys/param.h
authorSofian Brabez <sbz@FreeBSD.org>
Sat, 12 Nov 2016 05:08:29 +0000 (06:08 +0100)
committerSofian Brabez <sbz@FreeBSD.org>
Mon, 16 Oct 2017 16:09:51 +0000 (18:09 +0200)
ctfdump.c

index 26cd05b7a4920dcacf283f4a42d33374187786ed..7a47a0d1cb04adafd8afc628b0ba99c7c372bd65 100644 (file)
--- a/ctfdump.c
+++ b/ctfdump.c
 
 #include "compat.h"
 
-#ifndef nitems
-#define nitems(_a)     (sizeof((_a)) / sizeof((_a)[0]))
-#endif
-
 #define DUMP_OBJECT    (1 << 0)
 #define DUMP_FUNCTION  (1 << 1)
 #define DUMP_HEADER    (1 << 2)