]> git.proxmox.com Git - mirror_frr.git/blobdiff - ldpd/l2vpn.c
staticd: Do not ready prefix for printing till it's decoded
[mirror_frr.git] / ldpd / l2vpn.c
index 1cfeae30927315d747ab027fbf70b21d668ec85b..7f2e396a7f5c849f9e41bf51133eac3bbcd076a0 100644 (file)
@@ -119,7 +119,7 @@ l2vpn_exit(struct l2vpn *l2vpn)
 static __inline int
 l2vpn_if_compare(const struct l2vpn_if *a, const struct l2vpn_if *b)
 {
-       return (if_cmp_name_func((char *)a->ifname, (char *)b->ifname));
+       return if_cmp_name_func(a->ifname, b->ifname);
 }
 
 struct l2vpn_if *
@@ -182,7 +182,7 @@ l2vpn_if_update(struct l2vpn_if *lif)
 static __inline int
 l2vpn_pw_compare(const struct l2vpn_pw *a, const struct l2vpn_pw *b)
 {
-       return (if_cmp_name_func((char *)a->ifname, (char *)b->ifname));
+       return if_cmp_name_func(a->ifname, b->ifname);
 }
 
 struct l2vpn_pw *