aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-06-20 23:03:27 +0000
committerMike Frysinger <vapier@gentoo.org>2006-06-20 23:03:27 +0000
commitb049c0ec196fe3fd89c0b92b3d2d70bce095fba0 (patch)
treeb1aa7a9c97881c20424bc780d23af6b0263941d8
parentb13fee4cbb98a20ae761da46b02b58cb47f289ab (diff)
downloadbusybox-w32-b049c0ec196fe3fd89c0b92b3d2d70bce095fba0.tar.gz
busybox-w32-b049c0ec196fe3fd89c0b92b3d2d70bce095fba0.tar.bz2
busybox-w32-b049c0ec196fe3fd89c0b92b3d2d70bce095fba0.zip
only enable count_bit functions when actually needed to fix warning reported by Bernhard Fischer
-rw-r--r--networking/ifupdown.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index 6a200bb26..ff47e60c9 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -111,6 +111,8 @@ static char no_act = 0;
111static char verbose = 0; 111static char verbose = 0;
112static char **__myenviron = NULL; 112static char **__myenviron = NULL;
113 113
114#if ENABLE_FEATURE_IFUPDOWN_IPV4 || ENABLE_FEATURE_IFUPDOWN_IPV6
115
114#ifdef CONFIG_FEATURE_IFUPDOWN_IP 116#ifdef CONFIG_FEATURE_IFUPDOWN_IP
115 117
116static unsigned int count_bits(unsigned int a) 118static unsigned int count_bits(unsigned int a)
@@ -135,7 +137,6 @@ static int count_netmask_bits(char *dotted_quad)
135} 137}
136#endif 138#endif
137 139
138#if ENABLE_FEATURE_IFUPDOWN_IPV4 || ENABLE_FEATURE_IFUPDOWN_IPV6
139static void addstr(char **buf, size_t *len, size_t *pos, char *str, size_t str_length) 140static void addstr(char **buf, size_t *len, size_t *pos, char *str, size_t str_length)
140{ 141{
141 if (*pos + str_length >= *len) { 142 if (*pos + str_length >= *len) {