aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2005-12-14 14:13:15 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2005-12-14 14:13:15 +0000
commitd42ef28b98d451dc5cdd53dc1fa6ead845d5683a (patch)
tree3a77f839ba463fc2b679cb96341965a2d935f427 /networking
parent17d355cb3c97d50b9ffe39442bd2896abddd92f0 (diff)
downloadbusybox-d42ef28b98d451dc5cdd53dc1fa6ead845d5683a.tar.gz
- several functions depend on IPv4 or IPv6 od IPX support.
removes warning about unused code for allbareconfig.
Diffstat (limited to 'networking')
-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)
}
#endif
+#if ENABLE_FEATURE_IFUPDOWN_IPV4 || ENABLE_FEATURE_IFUPDOWN_IPV6 || \
+ ENABLE_FEATURE_IFUPDOWN_IPX
static void addstr(char **buf, size_t *len, size_t *pos, char *str, size_t str_length)
{
if (*pos + str_length >= *len) {
@@ -319,6 +321,7 @@ static int execute(char *command, struct interface_defn_t *ifd, execfn *exec)
}
return(1);
}
+#endif
#ifdef CONFIG_FEATURE_IFUPDOWN_IPX
static int static_up_ipx(struct interface_defn_t *ifd, execfn *exec)