diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2020-01-07 19:54:04 +0100 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2020-01-07 19:54:41 +0100 |
commit | 8264e9b74f034ebbe511552dce308cad8f854900 (patch) | |
tree | 50430ce12e2ba5158a17573efb761e22463300a7 /zebra/zebra_vxlan_private.h | |
parent | Merge pull request #5639 from qlyoung/fix-zebra-ptm-double-free (diff) | |
download | frr-8264e9b74f034ebbe511552dce308cad8f854900.tar.xz frr-8264e9b74f034ebbe511552dce308cad8f854900.zip |
zebra: remove cast from l3vni XMALLOC
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_vxlan_private.h')
-rw-r--r-- | zebra/zebra_vxlan_private.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/zebra/zebra_vxlan_private.h b/zebra/zebra_vxlan_private.h index 989ea464e..100bb0e09 100644 --- a/zebra/zebra_vxlan_private.h +++ b/zebra/zebra_vxlan_private.h @@ -162,8 +162,7 @@ static inline const char *zl3vni_rmac2str(zebra_l3vni_t *zl3vni, char *buf, char *ptr; if (!buf) - ptr = (char *)XMALLOC(MTYPE_TMP, - ETHER_ADDR_STRLEN * sizeof(char)); + ptr = XMALLOC(MTYPE_TMP, ETHER_ADDR_STRLEN * sizeof(char)); else { assert(size >= ETHER_ADDR_STRLEN); ptr = buf; @@ -200,8 +199,7 @@ static inline const char *zl3vni_sysmac2str(zebra_l3vni_t *zl3vni, char *buf, char *ptr; if (!buf) - ptr = (char *)XMALLOC(MTYPE_TMP, - ETHER_ADDR_STRLEN * sizeof(char)); + ptr = XMALLOC(MTYPE_TMP, ETHER_ADDR_STRLEN * sizeof(char)); else { assert(size >= ETHER_ADDR_STRLEN); ptr = buf; |