diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-08 11:24:44 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-08 11:24:44 +0200 |
commit | 7f3a2a22569eb8e4c9fcc1c7f4e51fe0c6155dae (patch) | |
tree | ca48b19046a8de875054b240f7713a09cb9a5358 /networking | |
parent | d60752f8c9be5689a249ad518deb38061d4bc45e (diff) | |
download | busybox-w32-7f3a2a22569eb8e4c9fcc1c7f4e51fe0c6155dae.tar.gz busybox-w32-7f3a2a22569eb8e4c9fcc1c7f4e51fe0c6155dae.tar.bz2 busybox-w32-7f3a2a22569eb8e4c9fcc1c7f4e51fe0c6155dae.zip |
join some common strings, -400 bytes
function old new delta
print_intel_cstates 499 511 +12
file_insert 355 364 +9
dpkg_main 2944 2940 -4
ifenslave_main 645 640 -5
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/2 up/down: 21/-9) Total: 12 bytes
text data bss dec hex filename
937564 932 17676 956172 e970c busybox_old
937164 932 17676 955772 e957c busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r-- | networking/httpd.c | 6 | ||||
-rw-r--r-- | networking/ifenslave.c | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index feaaa94d5..00169c36d 100644 --- a/networking/httpd.c +++ b/networking/httpd.c | |||
@@ -1222,12 +1222,12 @@ static NOINLINE void cgi_io_loop_and_exit(int fromCgi_rd, int toCgi_wr, int post | |||
1222 | out_cnt += count; | 1222 | out_cnt += count; |
1223 | count = 0; | 1223 | count = 0; |
1224 | /* "Status" header format is: "Status: 302 Redirected\r\n" */ | 1224 | /* "Status" header format is: "Status: 302 Redirected\r\n" */ |
1225 | if (out_cnt >= 8 && memcmp(rbuf, "Status: ", 8) == 0) { | 1225 | if (out_cnt >= 7 && memcmp(rbuf, "Status:", 7) == 0) { |
1226 | /* send "HTTP/1.0 " */ | 1226 | /* send "HTTP/1.0 " */ |
1227 | if (full_write(STDOUT_FILENO, HTTP_200, 9) != 9) | 1227 | if (full_write(STDOUT_FILENO, HTTP_200, 9) != 9) |
1228 | break; | 1228 | break; |
1229 | rbuf += 8; /* skip "Status: " */ | 1229 | rbuf += 7; /* skip "Status:" */ |
1230 | count = out_cnt - 8; | 1230 | count = out_cnt - 7; |
1231 | out_cnt = -1; /* buffering off */ | 1231 | out_cnt = -1; /* buffering off */ |
1232 | } else if (out_cnt >= 4) { | 1232 | } else if (out_cnt >= 4) { |
1233 | /* Did CGI add "HTTP"? */ | 1233 | /* Did CGI add "HTTP"? */ |
diff --git a/networking/ifenslave.c b/networking/ifenslave.c index c3be8180b..6b234adee 100644 --- a/networking/ifenslave.c +++ b/networking/ifenslave.c | |||
@@ -577,8 +577,8 @@ int ifenslave_main(int argc UNUSED_PARAM, char **argv) | |||
577 | /* Can't work with this slave, */ | 577 | /* Can't work with this slave, */ |
578 | /* remember the error and skip it */ | 578 | /* remember the error and skip it */ |
579 | bb_perror_msg( | 579 | bb_perror_msg( |
580 | "skipping %s: can't get flags", | 580 | "skipping %s: can't get %s", |
581 | slave_ifname); | 581 | slave_ifname, "flags"); |
582 | res = rv; | 582 | res = rv; |
583 | continue; | 583 | continue; |
584 | } | 584 | } |
@@ -595,8 +595,8 @@ int ifenslave_main(int argc UNUSED_PARAM, char **argv) | |||
595 | /* Can't work with this slave, */ | 595 | /* Can't work with this slave, */ |
596 | /* remember the error and skip it */ | 596 | /* remember the error and skip it */ |
597 | bb_perror_msg( | 597 | bb_perror_msg( |
598 | "skipping %s: can't get settings", | 598 | "skipping %s: can't get %s", |
599 | slave_ifname); | 599 | slave_ifname, "settings"); |
600 | res = rv; | 600 | res = rv; |
601 | continue; | 601 | continue; |
602 | } | 602 | } |