[BusyBox-cvs] busybox/networking ifupdown.c,1.21,1.22
Erik Andersen
andersen at codepoet.org
Wed Apr 2 10:13:31 UTC 2003
Update of /var/cvs/busybox/networking
In directory winder:/tmp/cvs-serv5938
Modified Files:
ifupdown.c
Log Message:
Yet another rather large face lift. It now works for me as expected.
-Erik
Index: ifupdown.c
===================================================================
RCS file: /var/cvs/busybox/networking/ifupdown.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- ifupdown.c 19 Mar 2003 09:12:38 -0000 1.21
+++ ifupdown.c 2 Apr 2003 10:13:26 -0000 1.22
@@ -1,6 +1,8 @@
+/* vi: set sw=4 ts=4: */
/*
* ifupdown for busybox
* Copyright (c) 2002 Glenn McGrath <bug1 at optushome.com.au>
+ * Copyright (c) 2003 Erik Andersen <andersen at codepoet.org>
*
* Based on ifupdown v 0.6.4 by Anthony Towns
* Copyright (c) 1999 Anthony Towns <aj at azure.humbug.org.au>
@@ -47,25 +49,59 @@
#define EUNDEFVAR 10002
#define EUNBALPER 10000
[...1450 lines suppressed...]
+ }
+ if (verbose) {
+ printf("\n");
}
if (!okay && !force) {
- bb_error_msg("Ignoring unknown interface %s=%s.", iface, liface);
+ bb_error_msg("Ignoring unknown interface %s", liface);
} else {
llist_t *iface_state = find_iface_state(state_list, iface);
@@ -1359,7 +1357,7 @@
char *newiface = xmalloc(bb_strlen(iface) + 1 + bb_strlen(liface) + 1);
sprintf(newiface, "%s=%s", iface, liface);
if (iface_state == NULL) {
- state_list = llist_add_to(state_list, newiface);
+ state_list = llist_add_to_end(state_list, newiface);
} else {
free(iface_state->data);
iface_state->data = newiface;
More information about the busybox-cvs
mailing list