projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b13fee4
)
only enable count_bit functions when actually needed to fix warning reported by Bernh...
author
Mike Frysinger
<vapier@gentoo.org>
Tue, 20 Jun 2006 23:03:27 +0000
(23:03 -0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Tue, 20 Jun 2006 23:03:27 +0000
(23:03 -0000)
networking/ifupdown.c
patch
|
blob
|
history
diff --git
a/networking/ifupdown.c
b/networking/ifupdown.c
index 6a200bb2668c1b53598c269ab4e15c34a396bc72..ff47e60c932a52627d814af348c7272c8315e815 100644
(file)
--- a/
networking/ifupdown.c
+++ b/
networking/ifupdown.c
@@
-111,6
+111,8
@@
static char no_act = 0;
static char verbose = 0;
static char **__myenviron = NULL;
+#if ENABLE_FEATURE_IFUPDOWN_IPV4 || ENABLE_FEATURE_IFUPDOWN_IPV6
+
#ifdef CONFIG_FEATURE_IFUPDOWN_IP
static unsigned int count_bits(unsigned int a)
@@
-135,7
+137,6
@@
static int count_netmask_bits(char *dotted_quad)
}
#endif
-#if ENABLE_FEATURE_IFUPDOWN_IPV4 || ENABLE_FEATURE_IFUPDOWN_IPV6
static void addstr(char **buf, size_t *len, size_t *pos, char *str, size_t str_length)
{
if (*pos + str_length >= *len) {