aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-11-17 20:29:00 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-11-17 20:29:00 +0000
commita7189f01a4a19a9c8852e84b322fc3d8cbda92eb (patch)
tree436e3ab7b6f055553199153e99f6b7589fb488ec /networking
parent04c6386c45cd795617dd754066ac3bd6a62757cb (diff)
downloadbusybox-w32-a7189f01a4a19a9c8852e84b322fc3d8cbda92eb.tar.gz
busybox-w32-a7189f01a4a19a9c8852e84b322fc3d8cbda92eb.tar.bz2
busybox-w32-a7189f01a4a19a9c8852e84b322fc3d8cbda92eb.zip
add -Wundef, fix uncovered bugs
Diffstat (limited to 'networking')
-rw-r--r--networking/ifconfig.c2
-rw-r--r--networking/interface.c2
-rw-r--r--networking/libiproute/ll_proto.c2
-rw-r--r--networking/udhcp/clientpacket.c2
-rw-r--r--networking/udhcp/clientsocket.c2
-rw-r--r--networking/udhcp/packet.c2
-rw-r--r--networking/udhcp/socket.c2
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 @@
29#include <net/if.h> 29#include <net/if.h>
30#include <net/if_arp.h> 30#include <net/if_arp.h>
31#include <netinet/in.h> 31#include <netinet/in.h>
32#if __GLIBC__ >=2 && __GLIBC_MINOR >= 1 32#if __GLIBC__ >=2 && __GLIBC_MINOR__ >= 1
33#include <netpacket/packet.h> 33#include <netpacket/packet.h>
34#include <net/ethernet.h> 34#include <net/ethernet.h>
35#else 35#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 = {
738 738
739#include <net/if_arp.h> 739#include <net/if_arp.h>
740 740
741#if (__GLIBC__ >=2 && __GLIBC_MINOR >= 1) || defined(_NEWLIB_VERSION) 741#if (__GLIBC__ >=2 && __GLIBC_MINOR__ >= 1) || defined(_NEWLIB_VERSION)
742#include <net/ethernet.h> 742#include <net/ethernet.h>
743#else 743#else
744#include <linux/if_ether.h> 744#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 @@
16#include "rt_names.h" 16#include "rt_names.h"
17#include "utils.h" 17#include "utils.h"
18 18
19#if __GLIBC__ >=2 && __GLIBC_MINOR >= 1 19#if __GLIBC__ >=2 && __GLIBC_MINOR__ >= 1
20#include <net/ethernet.h> 20#include <net/ethernet.h>
21#else 21#else
22#include <linux/if_ether.h> 22#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 @@
11#include <string.h> 11#include <string.h>
12#include <sys/socket.h> 12#include <sys/socket.h>
13#include <features.h> 13#include <features.h>
14#if (__GLIBC__ >= 2 && __GLIBC_MINOR >= 1) || defined _NEWLIB_VERSION 14#if (__GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1) || defined _NEWLIB_VERSION
15#include <netpacket/packet.h> 15#include <netpacket/packet.h>
16#include <net/ethernet.h> 16#include <net/ethernet.h>
17#else 17#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 @@
26#include <unistd.h> 26#include <unistd.h>
27#include <netinet/in.h> 27#include <netinet/in.h>
28#include <features.h> 28#include <features.h>
29#if (__GLIBC__ >= 2 && __GLIBC_MINOR >= 1) || defined _NEWLIB_VERSION 29#if (__GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1) || defined(_NEWLIB_VERSION)
30#include <netpacket/packet.h> 30#include <netpacket/packet.h>
31#include <net/ethernet.h> 31#include <net/ethernet.h>
32#else 32#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 @@
5#include <sys/types.h> 5#include <sys/types.h>
6#include <sys/socket.h> 6#include <sys/socket.h>
7#include <features.h> 7#include <features.h>
8#if (__GLIBC__ >= 2 && __GLIBC_MINOR >= 1) || defined _NEWLIB_VERSION 8#if (__GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1) || defined _NEWLIB_VERSION
9#include <netpacket/packet.h> 9#include <netpacket/packet.h>
10#include <net/ethernet.h> 10#include <net/ethernet.h>
11#else 11#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 @@
33#include <net/if.h> 33#include <net/if.h>
34#include <errno.h> 34#include <errno.h>
35#include <features.h> 35#include <features.h>
36#if (__GLIBC__ >= 2 && __GLIBC_MINOR >= 1) || defined _NEWLIB_VERSION 36#if (__GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1) || defined _NEWLIB_VERSION
37#include <netpacket/packet.h> 37#include <netpacket/packet.h>
38#include <net/ethernet.h> 38#include <net/ethernet.h>
39#else 39#else