mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 02:22:48 +00:00
zebra: remove cast from l3vni XMALLOC
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
dba6ddda0f
commit
8264e9b74f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user