summaryrefslogtreecommitdiffstats
path: root/lib/memory.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2019-01-30 23:18:06 +0100
committerDavid Lamparter <equinox@diac24.net>2019-04-18 12:44:29 +0200
commit0d019561bd855b6097b75d8d95a4dc69e410aae1 (patch)
treed704db707170f1fbc7bccb170b72d97834b74c90 /lib/memory.h
parentlib: add "seqlock" wait/broadcast primitive (diff)
downloadfrr-0d019561bd855b6097b75d8d95a4dc69e410aae1.tar.xz
frr-0d019561bd855b6097b75d8d95a4dc69e410aae1.zip
lib: move/redo some macros
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/memory.h')
-rw-r--r--lib/memory.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/memory.h b/lib/memory.h
index 91a02b796..0002ea334 100644
--- a/lib/memory.h
+++ b/lib/memory.h
@@ -26,8 +26,6 @@
extern "C" {
#endif
-#define array_size(ar) (sizeof(ar) / sizeof(ar[0]))
-
#if defined(HAVE_MALLOC_SIZE) && !defined(HAVE_MALLOC_USABLE_SIZE)
#define malloc_usable_size(x) malloc_size(x)
#define HAVE_MALLOC_USABLE_SIZE