]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
This is bug, isn't it?
authorOndrej Zajicek <santiago@crfreenet.org>
Fri, 21 Nov 2008 12:01:05 +0000 (13:01 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Fri, 21 Nov 2008 12:01:05 +0000 (13:01 +0100)
sysdep/unix/krt-iface.c

index 37f9d0bd8ea6bef1f48739500098ee944f92e116..e0158b6baf163f8ee36260c4884551fe7e80d1ac 100644 (file)
@@ -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