From: Ondrej Zajicek Date: Fri, 21 Nov 2008 12:01:05 +0000 (+0100) Subject: This is bug, isn't it? X-Git-Tag: v1.2.0~171 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eac21b46f7cf0f704c976f2ffdb289837ad100cc;p=thirdparty%2Fbird.git This is bug, isn't it? --- diff --git a/sysdep/unix/krt-iface.c b/sysdep/unix/krt-iface.c index 37f9d0bd8..e0158b6ba 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