mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 14:29:47 +00:00
Merge pull request #5650 from qlyoung/fix-cast-malloc
zebra: remove cast from l3vni XMALLOC
This commit is contained in:
commit
025f44802b
@ -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