From eac21b46f7cf0f704c976f2ffdb289837ad100cc Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Fri, 21 Nov 2008 13:01:05 +0100 Subject: This is bug, isn't it? --- sysdep/unix/krt-iface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdep/unix/krt-iface.c') diff --git a/sysdep/unix/krt-iface.c b/sysdep/unix/krt-iface.c index 37f9d0bd..e0158b6b 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 -- cgit v1.2.3