diff options
Diffstat (limited to 'networking/httpd.c')
-rw-r--r-- | networking/httpd.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index 9b4b7172d..30ef30552 100644 --- a/networking/httpd.c +++ b/networking/httpd.c | |||
@@ -338,7 +338,7 @@ enum { | |||
338 | SEND_BODY = (1 << 1), | 338 | SEND_BODY = (1 << 1), |
339 | SEND_HEADERS_AND_BODY = SEND_HEADERS + SEND_BODY, | 339 | SEND_HEADERS_AND_BODY = SEND_HEADERS + SEND_BODY, |
340 | }; | 340 | }; |
341 | static void send_file_and_exit(const char *url, int what) ATTRIBUTE_NORETURN; | 341 | static void send_file_and_exit(const char *url, int what) NORETURN; |
342 | 342 | ||
343 | static void free_llist(has_next_ptr **pptr) | 343 | static void free_llist(has_next_ptr **pptr) |
344 | { | 344 | { |
@@ -919,7 +919,7 @@ static int openServer(void) | |||
919 | /* | 919 | /* |
920 | * Log the connection closure and exit. | 920 | * Log the connection closure and exit. |
921 | */ | 921 | */ |
922 | static void log_and_exit(void) ATTRIBUTE_NORETURN; | 922 | static void log_and_exit(void) NORETURN; |
923 | static void log_and_exit(void) | 923 | static void log_and_exit(void) |
924 | { | 924 | { |
925 | /* Paranoia. IE said to be buggy. It may send some extra data | 925 | /* Paranoia. IE said to be buggy. It may send some extra data |
@@ -1050,7 +1050,7 @@ static void send_headers(int responseNum) | |||
1050 | } | 1050 | } |
1051 | } | 1051 | } |
1052 | 1052 | ||
1053 | static void send_headers_and_exit(int responseNum) ATTRIBUTE_NORETURN; | 1053 | static void send_headers_and_exit(int responseNum) NORETURN; |
1054 | static void send_headers_and_exit(int responseNum) | 1054 | static void send_headers_and_exit(int responseNum) |
1055 | { | 1055 | { |
1056 | send_headers(responseNum); | 1056 | send_headers(responseNum); |
@@ -1094,7 +1094,7 @@ static int get_line(void) | |||
1094 | #if ENABLE_FEATURE_HTTPD_CGI || ENABLE_FEATURE_HTTPD_PROXY | 1094 | #if ENABLE_FEATURE_HTTPD_CGI || ENABLE_FEATURE_HTTPD_PROXY |
1095 | 1095 | ||
1096 | /* gcc 4.2.1 fares better with NOINLINE */ | 1096 | /* gcc 4.2.1 fares better with NOINLINE */ |
1097 | static NOINLINE void cgi_io_loop_and_exit(int fromCgi_rd, int toCgi_wr, int post_len) ATTRIBUTE_NORETURN; | 1097 | static NOINLINE void cgi_io_loop_and_exit(int fromCgi_rd, int toCgi_wr, int post_len) NORETURN; |
1098 | static NOINLINE void cgi_io_loop_and_exit(int fromCgi_rd, int toCgi_wr, int post_len) | 1098 | static NOINLINE void cgi_io_loop_and_exit(int fromCgi_rd, int toCgi_wr, int post_len) |
1099 | { | 1099 | { |
1100 | enum { FROM_CGI = 1, TO_CGI = 2 }; /* indexes in pfd[] */ | 1100 | enum { FROM_CGI = 1, TO_CGI = 2 }; /* indexes in pfd[] */ |
@@ -1292,7 +1292,7 @@ static void send_cgi_and_exit( | |||
1292 | const char *request, | 1292 | const char *request, |
1293 | int post_len, | 1293 | int post_len, |
1294 | const char *cookie, | 1294 | const char *cookie, |
1295 | const char *content_type) ATTRIBUTE_NORETURN; | 1295 | const char *content_type) NORETURN; |
1296 | static void send_cgi_and_exit( | 1296 | static void send_cgi_and_exit( |
1297 | const char *url, | 1297 | const char *url, |
1298 | const char *request, | 1298 | const char *request, |
@@ -1752,8 +1752,8 @@ static Htaccess_Proxy *find_proxy_entry(const char *url) | |||
1752 | /* | 1752 | /* |
1753 | * Handle timeouts | 1753 | * Handle timeouts |
1754 | */ | 1754 | */ |
1755 | static void exit_on_signal(int sig) ATTRIBUTE_NORETURN; | 1755 | static void exit_on_signal(int sig) NORETURN; |
1756 | static void exit_on_signal(int sig ATTRIBUTE_UNUSED) | 1756 | static void exit_on_signal(int sig UNUSED_PARAM) |
1757 | { | 1757 | { |
1758 | send_headers_and_exit(HTTP_REQUEST_TIMEOUT); | 1758 | send_headers_and_exit(HTTP_REQUEST_TIMEOUT); |
1759 | } | 1759 | } |
@@ -1761,7 +1761,7 @@ static void exit_on_signal(int sig ATTRIBUTE_UNUSED) | |||
1761 | /* | 1761 | /* |
1762 | * Handle an incoming http request and exit. | 1762 | * Handle an incoming http request and exit. |
1763 | */ | 1763 | */ |
1764 | static void handle_incoming_and_exit(const len_and_sockaddr *fromAddr) ATTRIBUTE_NORETURN; | 1764 | static void handle_incoming_and_exit(const len_and_sockaddr *fromAddr) NORETURN; |
1765 | static void handle_incoming_and_exit(const len_and_sockaddr *fromAddr) | 1765 | static void handle_incoming_and_exit(const len_and_sockaddr *fromAddr) |
1766 | { | 1766 | { |
1767 | static const char request_GET[] ALIGN1 = "GET"; | 1767 | static const char request_GET[] ALIGN1 = "GET"; |
@@ -2151,7 +2151,7 @@ static void handle_incoming_and_exit(const len_and_sockaddr *fromAddr) | |||
2151 | * Never returns. | 2151 | * Never returns. |
2152 | */ | 2152 | */ |
2153 | #if BB_MMU | 2153 | #if BB_MMU |
2154 | static void mini_httpd(int server_socket) ATTRIBUTE_NORETURN; | 2154 | static void mini_httpd(int server_socket) NORETURN; |
2155 | static void mini_httpd(int server_socket) | 2155 | static void mini_httpd(int server_socket) |
2156 | { | 2156 | { |
2157 | /* NB: it's best to not use xfuncs in this loop before fork(). | 2157 | /* NB: it's best to not use xfuncs in this loop before fork(). |
@@ -2190,7 +2190,7 @@ static void mini_httpd(int server_socket) | |||
2190 | /* never reached */ | 2190 | /* never reached */ |
2191 | } | 2191 | } |
2192 | #else | 2192 | #else |
2193 | static void mini_httpd_nommu(int server_socket, int argc, char **argv) ATTRIBUTE_NORETURN; | 2193 | static void mini_httpd_nommu(int server_socket, int argc, char **argv) NORETURN; |
2194 | static void mini_httpd_nommu(int server_socket, int argc, char **argv) | 2194 | static void mini_httpd_nommu(int server_socket, int argc, char **argv) |
2195 | { | 2195 | { |
2196 | char *argv_copy[argc + 2]; | 2196 | char *argv_copy[argc + 2]; |
@@ -2241,7 +2241,7 @@ static void mini_httpd_nommu(int server_socket, int argc, char **argv) | |||
2241 | * Process a HTTP connection on stdin/out. | 2241 | * Process a HTTP connection on stdin/out. |
2242 | * Never returns. | 2242 | * Never returns. |
2243 | */ | 2243 | */ |
2244 | static void mini_httpd_inetd(void) ATTRIBUTE_NORETURN; | 2244 | static void mini_httpd_inetd(void) NORETURN; |
2245 | static void mini_httpd_inetd(void) | 2245 | static void mini_httpd_inetd(void) |
2246 | { | 2246 | { |
2247 | len_and_sockaddr fromAddr; | 2247 | len_and_sockaddr fromAddr; |
@@ -2289,7 +2289,7 @@ enum { | |||
2289 | 2289 | ||
2290 | 2290 | ||
2291 | int httpd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 2291 | int httpd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
2292 | int httpd_main(int argc ATTRIBUTE_UNUSED, char **argv) | 2292 | int httpd_main(int argc UNUSED_PARAM, char **argv) |
2293 | { | 2293 | { |
2294 | int server_socket = server_socket; /* for gcc */ | 2294 | int server_socket = server_socket; /* for gcc */ |
2295 | unsigned opt; | 2295 | unsigned opt; |