From: Denys Vlasenko Date: Mon, 5 Nov 2012 12:22:56 +0000 (+0100) Subject: ifupdown: simple code shrink X-Git-Tag: 1_21_0~48 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=11181335f9a97feddb30da4d09f9cd3739b8badd;p=oweals%2Fbusybox.git ifupdown: simple code shrink function old new delta execute 631 607 -24 Signed-off-by: Denys Vlasenko --- diff --git a/networking/ifupdown.c b/networking/ifupdown.c index ad0a9971b..9fc1266da 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;