From 0372f0f1999ace825a2265ad03b80be627b039fb Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 14 Aug 2007 16:50:01 +0000 Subject: httpd: extend -p PORT to -p [IP[v6]:]PORT httpd: comment out strange code which "closes connection properly" (isnt exit(0) good enough?) handle_incoming_and_exit - 2246 +2246 httpd_main 1116 1141 +25 getLine 75 77 +2 packed_usage 22827 22811 -16 parse_conf 1303 1284 -19 shutdown 32 - -32 handleIncoming 2578 - -2578 ------------------------------------------------------------------------------ (add/remove: 1/2 grow/shrink: 2/2 up/down: 2273/-2645) Total: -372 bytes text data bss dec hex filename 774704 1058 11092 786854 c01a6 busybox_old 774335 1058 11092 786485 c0035 busybox_unstripped --- include/usage.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'include') diff --git a/include/usage.h b/include/usage.h index 1d4459df1..41459e8c3 100644 --- a/include/usage.h +++ b/include/usage.h @@ -1352,21 +1352,21 @@ " [-h home]" \ " [-d/-e string]" #define httpd_full_usage \ - "Listen for incoming http server requests" \ - "\n\nOptions:\n" \ - " -c FILE Specifies configuration file. (default httpd.conf)\n" \ - " -p PORT Server port (default 80)\n" \ - " -i Assume that we are started from inetd\n" \ - " -f Do not daemonize\n" \ + "Listen for incoming HTTP requests" \ + "\n\nOptions:" \ + "\n -c FILE Configuration file (default httpd.conf)" \ + "\n -p PORT Server port (default 80)" \ + "\n -i Inetd mode" \ + "\n -f Do not daemonize" \ USE_FEATURE_HTTPD_SETUID( \ - " -u USER[:GRP] Set uid/gid after binding to port\n") \ + "\n -u USER[:GRP] Set uid/gid after binding to port") \ USE_FEATURE_HTTPD_BASIC_AUTH( \ - " -r REALM Authentication Realm for Basic Authentication\n") \ + "\n -r REALM Authentication Realm for Basic Authentication") \ USE_FEATURE_HTTPD_AUTH_MD5( \ - " -m PASS Crypt PASS with md5 algorithm\n") \ - " -h HOME Specifies http HOME directory (default ./)\n" \ - " -e STRING HTML encode STRING\n" \ - " -d STRING URL decode STRING" + "\n -m PASS Crypt PASS with md5 algorithm") \ + "\n -h HOME Home directory (default .)" \ + "\n -e STRING HTML encode STRING" \ + "\n -d STRING URL decode STRING" #define hwclock_trivial_usage \ "[-r|--show] [-s|--hctosys] [-w|--systohc]" \ -- cgit v1.2.3