mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-05 09:54:14 +00:00
lib: remove unused variable
* sockopt.c (getsockopt_ifindex): "ifindex" was never used
This commit is contained in:
parent
cbfbf2f07b
commit
c69f91be67
@ -451,8 +451,6 @@ getsockopt_ipv4_ifindex (struct msghdr *msgh)
|
|||||||
int
|
int
|
||||||
getsockopt_ifindex (int af, struct msghdr *msgh)
|
getsockopt_ifindex (int af, struct msghdr *msgh)
|
||||||
{
|
{
|
||||||
int ifindex = 0;
|
|
||||||
|
|
||||||
switch (af)
|
switch (af)
|
||||||
{
|
{
|
||||||
case AF_INET:
|
case AF_INET:
|
||||||
@ -465,7 +463,7 @@ getsockopt_ifindex (int af, struct msghdr *msgh)
|
|||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
zlog_warn ("getsockopt_ifindex: unknown address family %d", af);
|
zlog_warn ("getsockopt_ifindex: unknown address family %d", af);
|
||||||
return (ifindex = 0);
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user