From a7189f01a4a19a9c8852e84b322fc3d8cbda92eb Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 17 Nov 2006 20:29:00 +0000 Subject: add -Wundef, fix uncovered bugs --- networking/udhcp/clientpacket.c | 2 +- networking/udhcp/clientsocket.c | 2 +- networking/udhcp/packet.c | 2 +- networking/udhcp/socket.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'networking/udhcp') diff --git a/networking/udhcp/clientpacket.c b/networking/udhcp/clientpacket.c index 58b26c1..4299c2d 100644 --- a/networking/udhcp/clientpacket.c +++ b/networking/udhcp/clientpacket.c @@ -11,7 +11,7 @@ #include #include #include -#if (__GLIBC__ >= 2 && __GLIBC_MINOR >= 1) || defined _NEWLIB_VERSION +#if (__GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1) || defined _NEWLIB_VERSION #include #include #else diff --git a/networking/udhcp/clientsocket.c b/networking/udhcp/clientsocket.c index 982aca1..6aa6175 100644 --- a/networking/udhcp/clientsocket.c +++ b/networking/udhcp/clientsocket.c @@ -26,7 +26,7 @@ #include #include #include -#if (__GLIBC__ >= 2 && __GLIBC_MINOR >= 1) || defined _NEWLIB_VERSION +#if (__GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1) || defined(_NEWLIB_VERSION) #include #include #else diff --git a/networking/udhcp/packet.c b/networking/udhcp/packet.c index f12ecd6..e861b82 100644 --- a/networking/udhcp/packet.c +++ b/networking/udhcp/packet.c @@ -5,7 +5,7 @@ #include #include #include -#if (__GLIBC__ >= 2 && __GLIBC_MINOR >= 1) || defined _NEWLIB_VERSION +#if (__GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1) || defined _NEWLIB_VERSION #include #include #else diff --git a/networking/udhcp/socket.c b/networking/udhcp/socket.c index 3f481c3..d1867e9 100644 --- a/networking/udhcp/socket.c +++ b/networking/udhcp/socket.c @@ -33,7 +33,7 @@ #include #include #include -#if (__GLIBC__ >= 2 && __GLIBC_MINOR >= 1) || defined _NEWLIB_VERSION +#if (__GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1) || defined _NEWLIB_VERSION #include #include #else -- cgit v1.1