svn commit: trunk/busybox/networking

aldot at busybox.net aldot at busybox.net
Wed Dec 14 14:13:20 UTC 2005


Author: aldot
Date: 2005-12-14 06:13:15 -0800 (Wed, 14 Dec 2005)
New Revision: 12884

Log:
- several functions depend on IPv4 or IPv6 od IPX support.
  removes warning about unused code for allbareconfig.


Modified:
   trunk/busybox/networking/ifupdown.c


Changeset:
Modified: trunk/busybox/networking/ifupdown.c
===================================================================
--- trunk/busybox/networking/ifupdown.c	2005-12-14 13:50:39 UTC (rev 12883)
+++ trunk/busybox/networking/ifupdown.c	2005-12-14 14:13:15 UTC (rev 12884)
@@ -141,6 +141,8 @@
 }
 #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 @@
 	}
 	return(1);
 }
+#endif
 
 #ifdef CONFIG_FEATURE_IFUPDOWN_IPX
 static int static_up_ipx(struct interface_defn_t *ifd, execfn *exec)




More information about the busybox-cvs mailing list