diff options
author | Donald Sharp <sharpd@nvidia.com> | 2022-12-05 17:43:57 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2022-12-05 17:43:57 +0100 |
commit | 29a1a53d6c3023841b8289f9ff7b15219ec0b05c (patch) | |
tree | fed1704aee1b3598e2b522923a24f62166d5988b /ospfd/ospf_snmp.c | |
parent | Merge pull request #12437 from proelbtn/proelbtn-fix-srv6-tests (diff) | |
download | frr-29a1a53d6c3023841b8289f9ff7b15219ec0b05c.tar.xz frr-29a1a53d6c3023841b8289f9ff7b15219ec0b05c.zip |
ospfd: Remove MTYPE_TMP
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ospfd/ospf_snmp.c')
-rw-r--r-- | ospfd/ospf_snmp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ospfd/ospf_snmp.c b/ospfd/ospf_snmp.c index 9727c7039..f1b876cfb 100644 --- a/ospfd/ospf_snmp.c +++ b/ospfd/ospf_snmp.c @@ -50,6 +50,8 @@ #include "ospfd/ospf_route.h" #include "ospfd/ospf_zebra.h" +DEFINE_MTYPE_STATIC(OSPFD, SNMP, "OSPF SNMP"); + /* OSPF2-MIB. */ #define OSPF2MIB 1,3,6,1,2,1,14 @@ -1321,12 +1323,12 @@ struct ospf_snmp_if { static struct ospf_snmp_if *ospf_snmp_if_new(void) { - return XCALLOC(MTYPE_TMP, sizeof(struct ospf_snmp_if)); + return XCALLOC(MTYPE_SNMP, sizeof(struct ospf_snmp_if)); } static void ospf_snmp_if_free(struct ospf_snmp_if *osif) { - XFREE(MTYPE_TMP, osif); + XFREE(MTYPE_SNMP, osif); } static int ospf_snmp_if_delete(struct interface *ifp) |