summaryrefslogtreecommitdiffstats
path: root/lib/sockopt.c
diff options
context:
space:
mode:
authorDenis Ovsienko <infrastation@yandex.ru>2011-08-01 19:59:04 +0200
committerDenis Ovsienko <infrastation@yandex.ru>2011-09-27 19:34:48 +0200
commit3a8c3dd7d0331c2da7c14aa33c48d512300d6e09 (patch)
tree03f2853696fd9e7a7cb8a4449f6e056ae0a57c87 /lib/sockopt.c
parentdelete CVS keywords (diff)
downloadfrr-3a8c3dd7d0331c2da7c14aa33c48d512300d6e09.tar.xz
frr-3a8c3dd7d0331c2da7c14aa33c48d512300d6e09.zip
lib: remove unused variable
* sockopt.c (getsockopt_ifindex): "ifindex" was never used
Diffstat (limited to 'lib/sockopt.c')
-rw-r--r--lib/sockopt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/sockopt.c b/lib/sockopt.c
index 55c6226b7..6ab976896 100644
--- a/lib/sockopt.c
+++ b/lib/sockopt.c
@@ -451,8 +451,6 @@ getsockopt_ipv4_ifindex (struct msghdr *msgh)
int
getsockopt_ifindex (int af, struct msghdr *msgh)
{
- int ifindex = 0;
-
switch (af)
{
case AF_INET:
@@ -465,7 +463,7 @@ getsockopt_ifindex (int af, struct msghdr *msgh)
#endif
default:
zlog_warn ("getsockopt_ifindex: unknown address family %d", af);
- return (ifindex = 0);
+ return 0;
}
}