diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-11-05 13:22:56 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-11-05 13:22:56 +0100 |
commit | 11181335f9a97feddb30da4d09f9cd3739b8badd (patch) | |
tree | 3f7d6cf83ca08f7535d521d80ed8baead770d595 | |
parent | d2d5049c1d1ebb052387790df04740a3857fde63 (diff) | |
download | busybox-w32-11181335f9a97feddb30da4d09f9cd3739b8badd.tar.gz busybox-w32-11181335f9a97feddb30da4d09f9cd3739b8badd.tar.bz2 busybox-w32-11181335f9a97feddb30da4d09f9cd3739b8badd.zip |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
259 | opt_depth++; | 259 | opt_depth++; |
260 | command += 2; | 260 | command += 2; |
261 | } else { | 261 | } else { |
262 | addstr(&result, "[", 1); | 262 | addstr(&result, command, 1); |
263 | command++; | 263 | command++; |
264 | } | 264 | } |
265 | break; | 265 | break; |
@@ -271,7 +271,7 @@ static char *parse(const char *command, struct interface_defn_t *ifd) | |||
271 | } | 271 | } |
272 | command += 2; | 272 | command += 2; |
273 | } else { | 273 | } else { |
274 | addstr(&result, "]", 1); | 274 | addstr(&result, command, 1); |
275 | command++; | 275 | command++; |
276 | } | 276 | } |
277 | break; | 277 | break; |