0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 01:31:55 +00:00

This is bug, isn't it?

This commit is contained in:
Ondrej Zajicek 2008-11-21 13:01:05 +01:00
parent e00115904f
commit eac21b46f7

View 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