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>
This commit is contained in:
		@@ -1222,12 +1222,12 @@ static NOINLINE void cgi_io_loop_and_exit(int fromCgi_rd, int toCgi_wr, int post
 | 
			
		||||
				out_cnt += count;
 | 
			
		||||
				count = 0;
 | 
			
		||||
				/* "Status" header format is: "Status: 302 Redirected\r\n" */
 | 
			
		||||
				if (out_cnt >= 8 && memcmp(rbuf, "Status: ", 8) == 0) {
 | 
			
		||||
				if (out_cnt >= 7 && memcmp(rbuf, "Status:", 7) == 0) {
 | 
			
		||||
					/* send "HTTP/1.0 " */
 | 
			
		||||
					if (full_write(STDOUT_FILENO, HTTP_200, 9) != 9)
 | 
			
		||||
						break;
 | 
			
		||||
					rbuf += 8; /* skip "Status: " */
 | 
			
		||||
					count = out_cnt - 8;
 | 
			
		||||
					rbuf += 7; /* skip "Status:" */
 | 
			
		||||
					count = out_cnt - 7;
 | 
			
		||||
					out_cnt = -1; /* buffering off */
 | 
			
		||||
				} else if (out_cnt >= 4) {
 | 
			
		||||
					/* Did CGI add "HTTP"? */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user