diff options
author | Denis Ovsienko <infrastation@yandex.ru> | 2011-08-01 21:59:04 +0400 |
---|---|---|
committer | Denis Ovsienko <infrastation@yandex.ru> | 2011-08-01 21:59:04 +0400 |
commit | c69f91be67896e7e68adb7da4b5b9c5f6013f1a2 (patch) | |
tree | 00016eca2ba088f3472149381fdea6b3199750ce | |
parent | cbfbf2f07bd90f48e268907a597652af6d2e019d (diff) |
lib: remove unused variable
* sockopt.c (getsockopt_ifindex): "ifindex" was never used
-rw-r--r-- | lib/sockopt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/sockopt.c b/lib/sockopt.c index 55c6226b..6ab97689 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; } } |