Skip to content

Commit 34940b0

Browse files
committed
zebra: Fix build warnins
Changed return type to void from void * Fixed build warning for zlog_warn Signed-off-by: Soumya Roy <[email protected]>
1 parent 3f106e8 commit 34940b0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

zebra/zebra_evpn_mac.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2067,9 +2067,9 @@ int zebra_evpn_mac_remote_macip_add(struct zebra_evpn *zevpn, struct zebra_vrf *
20672067
zebra_evpn_mac_send_del_to_client(zevpn->vni, macaddr,
20682068
mac->flags, false);
20692069
if (CHECK_FLAG(mac->flags, ZEBRA_MAC_STICKY)) {
2070-
zlog_warn("Received remote mac add for MAC %pEA VNI %u VTEP %pI4, "
2070+
zlog_warn("Received remote mac add for MAC %pEA VNI %u VTEP %pIA, "
20712071
"but it is already learnt as local sticky MAC on Intf %s",
2072-
macaddr, zevpn->vni, &vtep_ip, mac->ifp->name);
2072+
macaddr, zevpn->vni, vtep_ip, mac->ifp->name);
20732073
}
20742074
}
20752075

zebra/zebra_vxlan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2387,7 +2387,7 @@ static void zebra_vxlan_if_vni_remove(struct zebra_if *zif, vni_t vni)
23872387
memset(&vni_tmp, 0, sizeof(vni_tmp));
23882388
vni_tmp.vni = vni;
23892389

2390-
(void *)hash_release(vni_info->vni_table, &vni_tmp);
2390+
(void)hash_release(vni_info->vni_table, &vni_tmp);
23912391
}
23922392

23932393
/*

0 commit comments

Comments
 (0)