mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-02 17:36:36 +00:00
lib: MTYPE_PREFIX_FLOWSPEC should not be exposed by memory.h
This MTYPE should be owned by prefix.c as a STATIC for the file. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
4634d02cfd
commit
ecc4d697cd
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user