summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2008-11-21 13:01:05 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2008-11-21 13:01:05 +0100
commiteac21b46f7cf0f704c976f2ffdb289837ad100cc (patch)
treea2319c3395b42574721634e7105a47c307580dcb
parente00115904ff7c1854957117d52a6db484050965b (diff)
downloadbird-eac21b46f7cf0f704c976f2ffdb289837ad100cc.tar
bird-eac21b46f7cf0f704c976f2ffdb289837ad100cc.zip
This is bug, isn't it?
-rw-r--r--sysdep/unix/krt-iface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdep/unix/krt-iface.c b/sysdep/unix/krt-iface.c
index 37f9d0b..e0158b6 100644
--- a/sysdep/unix/krt-iface.c
+++ b/sysdep/unix/krt-iface.c
@@ -153,7 +153,7 @@ scan_ifs(struct ifreq *r, int cnt)
#ifdef SIOCGIFINDEX
if (ioctl(if_scan_sock, SIOCGIFINDEX, r) >= 0)
i.index = r->ifr_ifindex;
- else if (errno != -EINVAL)
+ else if (errno != EINVAL)
DBG("SIOCGIFINDEX failed: %m\n");
else /* defined, but not supported by the kernel */
#endif