summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2012-11-05 12:22:56 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2012-11-05 12:22:56 (GMT)
commit11181335f9a97feddb30da4d09f9cd3739b8badd (patch)
tree3f7d6cf83ca08f7535d521d80ed8baead770d595
parentd2d5049c1d1ebb052387790df04740a3857fde63 (diff)
downloadbusybox-11181335f9a97feddb30da4d09f9cd3739b8badd.tar.gz
busybox-11181335f9a97feddb30da4d09f9cd3739b8badd.tar.bz2
ifupdown: simple code shrink
function old new delta execute 631 607 -24 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--networking/ifupdown.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index ad0a997..9fc1266 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -259,7 +259,7 @@ static char *parse(const char *command, struct interface_defn_t *ifd)
opt_depth++;
command += 2;
} else {
- addstr(&result, "[", 1);
+ addstr(&result, command, 1);
command++;
}
break;
@@ -271,7 +271,7 @@ static char *parse(const char *command, struct interface_defn_t *ifd)
}
command += 2;
} else {
- addstr(&result, "]", 1);
+ addstr(&result, command, 1);
command++;
}
break;