diff options
| author | Mark Stapp <mjs@cisco.com> | 2024-10-15 11:31:22 -0400 |
|---|---|---|
| committer | Mark Stapp <mjs@cisco.com> | 2024-10-28 11:09:52 -0400 |
| commit | 1f8d81335d177580147e778c70e5e84b2544359a (patch) | |
| tree | 520db4328fc30652aef8440c585f43702f362520 | |
| parent | 1668f3262a21b9990bbf3913742c58a62596c757 (diff) | |
zebra: make a zif MTYPE internal/static
Make an MTYPE used in zifs internal/static
Signed-off-by: Mark Stapp <mjs@cisco.com>
| -rw-r--r-- | zebra/interface.c | 2 | ||||
| -rw-r--r-- | zebra/interface.h | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/zebra/interface.c b/zebra/interface.c index f1f1b17209..3e92053ba9 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -43,7 +43,7 @@ DEFINE_MTYPE_STATIC(ZEBRA, ZINFO, "Zebra Interface Information"); DEFINE_HOOK(zebra_if_extra_info, (struct vty * vty, struct interface *ifp), (vty, ifp)); -DEFINE_MTYPE(ZEBRA, ZIF_DESC, "Intf desc"); +DEFINE_MTYPE_STATIC(ZEBRA, ZIF_DESC, "Intf desc"); static void if_down_del_nbr_connected(struct interface *ifp); diff --git a/zebra/interface.h b/zebra/interface.h index 8d19c1838f..d27d7b8911 100644 --- a/zebra/interface.h +++ b/zebra/interface.h @@ -94,9 +94,6 @@ enum zebra_if_flags { #define ZEBRA_IF_IS_PROTODOWN_ONLY_EXTERNAL(zif) \ ((zif)->protodown_rc == ZEBRA_PROTODOWN_EXTERNAL) -/* Mem type for zif desc */ -DECLARE_MTYPE(ZIF_DESC); - /* `zebra' daemon local interface structure. */ struct zebra_if { /* back pointer to the interface */ |
