diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-09-01 14:01:17 +0400 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-09-01 14:01:17 +0400 |
commit | 0004e994934374b5695e004bbcb7b1fd67a170f2 (patch) | |
tree | 6cbf7c0042fbd265b34f28111726b0f04c536818 /networking/route.c | |
parent | 9dc04124d5a3f0c9be249287817a964691e187b0 (diff) |
better shared strings trick
text data bss dec hex filename
861980 441 7540 869961 d4649 busybox_old
861914 441 7540 869895 d4607 busybox_unstripped
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'networking/route.c')
-rw-r--r-- | networking/route.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/route.c b/networking/route.c index c72e9457f..98567aaee 100644 --- a/networking/route.c +++ b/networking/route.c @@ -185,7 +185,7 @@ static NOINLINE void INET_setroute(int action, char **args) #endif } else { /* Default netmask. */ - netmask = bb_str_default; + netmask = "default"; } /* Prefer hostname lookup is -host flag (xflag==1) was given. */ isnet = INET_resolve(target, (struct sockaddr_in *) &rt.rt_dst, @@ -346,7 +346,7 @@ static NOINLINE void INET6_setroute(int action, char **args) /* We know args isn't NULL from the check in route_main. */ const char *target = *args++; - if (strcmp(target, bb_str_default) == 0) { + if (strcmp(target, "default") == 0) { prefix_len = 0; memset(&sa6, 0, sizeof(sa6)); } else { |