]> git.proxmox.com Git - mirror_frr.git/commitdiff
lib: MTYPE_PREFIX_FLOWSPEC should not be exposed by memory.h
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 7 Feb 2019 14:35:01 +0000 (09:35 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 7 Feb 2019 14:35:49 +0000 (09:35 -0500)
This MTYPE should be owned by prefix.c as a STATIC for the file.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/memory.c
lib/memory.h
lib/prefix.c

index fee23a75ac67e1d11463c102b2e68a87444ba1b5..149e294d500108f52af0f1172fbe5137e763d42c 100644 (file)
@@ -35,7 +35,6 @@ struct memgroup **mg_insert = &mg_first;
 
 DEFINE_MGROUP(LIB, "libfrr")
 DEFINE_MTYPE(LIB, TMP, "Temporary memory")
-DEFINE_MTYPE(LIB, PREFIX_FLOWSPEC, "Prefix Flowspec")
 
 static inline void mt_count_alloc(struct memtype *mt, size_t size, void *ptr)
 {
index 2d6c1447786a467d39fc147acb981947380ad996..1a0269f8bb1fc6adce96cc75c5c21af36e3dcaad 100644 (file)
@@ -137,7 +137,6 @@ struct memgroup {
 
 DECLARE_MGROUP(LIB)
 DECLARE_MTYPE(TMP)
-DECLARE_MTYPE(PREFIX_FLOWSPEC)
 
 
 extern void *qmalloc(struct memtype *mt, size_t size)
index 07eb1785b7f911bddf536bcb2220d18bb4882fe3..babd4304d13f29a47ef9e6778266be63b328ea66 100644 (file)
@@ -30,6 +30,7 @@
 #include "lib_errors.h"
 
 DEFINE_MTYPE_STATIC(LIB, PREFIX, "Prefix")
+DEFINE_MTYPE_STATIC(LIB, PREFIX_FLOWSPEC, "Prefix Flowspec")
 
 /* Maskbit. */
 static const uint8_t maskbit[] = {0x00, 0x80, 0xc0, 0xe0, 0xf0,