diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-17 23:29:00 +0300 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-17 23:29:00 +0300 |
commit | a7189f01a4a19a9c8852e84b322fc3d8cbda92eb (patch) | |
tree | 436e3ab7b6f055553199153e99f6b7589fb488ec /networking | |
parent | 04c6386c45cd795617dd754066ac3bd6a62757cb (diff) |
add -Wundef, fix uncovered bugs
Diffstat (limited to 'networking')
-rw-r--r-- | networking/ifconfig.c | 2 | ||||
-rw-r--r-- | networking/interface.c | 2 | ||||
-rw-r--r-- | networking/libiproute/ll_proto.c | 2 | ||||
-rw-r--r-- | networking/udhcp/clientpacket.c | 2 | ||||
-rw-r--r-- | networking/udhcp/clientsocket.c | 2 | ||||
-rw-r--r-- | networking/udhcp/packet.c | 2 | ||||
-rw-r--r-- | networking/udhcp/socket.c | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/networking/ifconfig.c b/networking/ifconfig.c index 59b6f0acc..371f0fc94 100644 --- a/networking/ifconfig.c +++ b/networking/ifconfig.c @@ -29,7 +29,7 @@ #include <net/if.h> #include <net/if_arp.h> #include <netinet/in.h> -#if __GLIBC__ >=2 && __GLIBC_MINOR >= 1 +#if __GLIBC__ >=2 && __GLIBC_MINOR__ >= 1 #include <netpacket/packet.h> #include <net/ethernet.h> #else diff --git a/networking/interface.c b/networking/interface.c index 6c8e93879..8bbde7d43 100644 --- a/networking/interface.c +++ b/networking/interface.c @@ -738,7 +738,7 @@ static const struct hwtype loop_hwtype = { #include <net/if_arp.h> -#if (__GLIBC__ >=2 && __GLIBC_MINOR >= 1) || defined(_NEWLIB_VERSION) +#if (__GLIBC__ >=2 && __GLIBC_MINOR__ >= 1) || defined(_NEWLIB_VERSION) #include <net/ethernet.h> #else #include <linux/if_ether.h> diff --git a/networking/libiproute/ll_proto.c b/networking/libiproute/ll_proto.c index f026ab7e6..a3fe9d376 100644 --- a/networking/libiproute/ll_proto.c +++ b/networking/libiproute/ll_proto.c @@ -16,7 +16,7 @@ #include "rt_names.h" #include "utils.h" -#if __GLIBC__ >=2 && __GLIBC_MINOR >= 1 +#if __GLIBC__ >=2 && __GLIBC_MINOR__ >= 1 #include <net/ethernet.h> #else #include <linux/if_ether.h> diff --git a/networking/udhcp/clientpacket.c b/networking/udhcp/clientpacket.c index 58b26c171..4299c2dbd 100644 --- a/networking/udhcp/clientpacket.c +++ b/networking/udhcp/clientpacket.c @@ -11,7 +11,7 @@ #include <string.h> #include <sys/socket.h> #include <features.h> -#if (__GLIBC__ >= 2 && __GLIBC_MINOR >= 1) || defined _NEWLIB_VERSION +#if (__GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1) || defined _NEWLIB_VERSION #include <netpacket/packet.h> #include <net/ethernet.h> #else diff --git a/networking/udhcp/clientsocket.c b/networking/udhcp/clientsocket.c index 982aca1bb..6aa61754d 100644 --- a/networking/udhcp/clientsocket.c +++ b/networking/udhcp/clientsocket.c @@ -26,7 +26,7 @@ #include <unistd.h> #include <netinet/in.h> #include <features.h> -#if (__GLIBC__ >= 2 && __GLIBC_MINOR >= 1) || defined _NEWLIB_VERSION +#if (__GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1) || defined(_NEWLIB_VERSION) #include <netpacket/packet.h> #include <net/ethernet.h> #else diff --git a/networking/udhcp/packet.c b/networking/udhcp/packet.c index f12ecd6ec..e861b825a 100644 --- a/networking/udhcp/packet.c +++ b/networking/udhcp/packet.c @@ -5,7 +5,7 @@ #include <sys/types.h> #include <sys/socket.h> #include <features.h> -#if (__GLIBC__ >= 2 && __GLIBC_MINOR >= 1) || defined _NEWLIB_VERSION +#if (__GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1) || defined _NEWLIB_VERSION #include <netpacket/packet.h> #include <net/ethernet.h> #else diff --git a/networking/udhcp/socket.c b/networking/udhcp/socket.c index 3f481c33c..d1867e9a8 100644 --- a/networking/udhcp/socket.c +++ b/networking/udhcp/socket.c @@ -33,7 +33,7 @@ #include <net/if.h> #include <errno.h> #include <features.h> -#if (__GLIBC__ >= 2 && __GLIBC_MINOR >= 1) || defined _NEWLIB_VERSION +#if (__GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1) || defined _NEWLIB_VERSION #include <netpacket/packet.h> #include <net/ethernet.h> #else |