aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-12-14 14:13:15 +0000
committeraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-12-14 14:13:15 +0000
commitea0821b87177ab2d9b7ff78a3a35d8fa99371628 (patch)
tree3a77f839ba463fc2b679cb96341965a2d935f427
parent30f3b143aadb0ba60d8cce6848ba9d43b66d904a (diff)
downloadbusybox-w32-ea0821b87177ab2d9b7ff78a3a35d8fa99371628.tar.gz
busybox-w32-ea0821b87177ab2d9b7ff78a3a35d8fa99371628.tar.bz2
busybox-w32-ea0821b87177ab2d9b7ff78a3a35d8fa99371628.zip
- several functions depend on IPv4 or IPv6 od IPX support.
removes warning about unused code for allbareconfig. git-svn-id: svn://busybox.net/trunk/busybox@12884 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--networking/ifupdown.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index 757827858..9dce445bd 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -141,6 +141,8 @@ static int count_netmask_bits(char *dotted_quad)
141} 141}
142#endif 142#endif
143 143
144#if ENABLE_FEATURE_IFUPDOWN_IPV4 || ENABLE_FEATURE_IFUPDOWN_IPV6 || \
145 ENABLE_FEATURE_IFUPDOWN_IPX
144static void addstr(char **buf, size_t *len, size_t *pos, char *str, size_t str_length) 146static void addstr(char **buf, size_t *len, size_t *pos, char *str, size_t str_length)
145{ 147{
146 if (*pos + str_length >= *len) { 148 if (*pos + str_length >= *len) {
@@ -319,6 +321,7 @@ static int execute(char *command, struct interface_defn_t *ifd, execfn *exec)
319 } 321 }
320 return(1); 322 return(1);
321} 323}
324#endif
322 325
323#ifdef CONFIG_FEATURE_IFUPDOWN_IPX 326#ifdef CONFIG_FEATURE_IFUPDOWN_IPX
324static int static_up_ipx(struct interface_defn_t *ifd, execfn *exec) 327static int static_up_ipx(struct interface_defn_t *ifd, execfn *exec)