Convert tabs to spaces

This commit is contained in:
Mukund Sivaraman 2008-12-08 13:39:44 +00:00
parent 6e6f992f8c
commit 024b317de0
37 changed files with 1221 additions and 1233 deletions

View File

@ -333,8 +333,7 @@ write_buffer (int fd, struct buffer_s * buffptr)
case ENOMEM: case ENOMEM:
log_message (LOG_ERR, log_message (LOG_ERR,
"writebuff: write() error [NOBUFS/NOMEM] \"%s\" on " "writebuff: write() error [NOBUFS/NOMEM] \"%s\" on "
"file descriptor %d", "file descriptor %d", strerror (errno), fd);
strerror (errno), fd);
return 0; return 0;
default: default:
log_message (LOG_ERR, log_message (LOG_ERR,

View File

@ -238,8 +238,7 @@ child_main (struct child_s *ptr)
{ {
log_message (LOG_NOTICE, log_message (LOG_NOTICE,
"Child has reached MaxRequestsPerChild (%u). " "Child has reached MaxRequestsPerChild (%u). "
"Killing child.", "Killing child.", ptr->connects);
ptr->connects);
break; break;
} }
} }
@ -350,8 +349,7 @@ child_pool_create (void)
{ {
log_message (LOG_WARNING, log_message (LOG_WARNING,
"Can not start more than \"MaxClients\" servers. " "Can not start more than \"MaxClients\" servers. "
"Starting %u servers instead.", "Starting %u servers instead.", child_config.maxclients);
child_config.maxclients);
child_config.startservers = child_config.maxclients; child_config.startservers = child_config.maxclients;
} }

View File

@ -146,8 +146,7 @@ retry:
{ {
log_message (LOG_ERR, log_message (LOG_ERR,
"read_request_line: Client (file descriptor: %d) " "read_request_line: Client (file descriptor: %d) "
"closed socket before read.", "closed socket before read.", connptr->client_fd);
connptr->client_fd);
return -1; return -1;
} }
@ -1156,8 +1155,7 @@ process_client_headers (struct conn_s *connptr, hashmap_t hashofheaders)
"detail", "detail",
"A network error occurred while " "A network error occurred while "
"trying to write data to the " "trying to write data to the "
"remote web server.", "remote web server.", NULL);
NULL);
goto PULL_CLIENT_DATA; goto PULL_CLIENT_DATA;
} }
} }
@ -1252,8 +1250,7 @@ retry:
"detail", "detail",
PACKAGE " " PACKAGE " "
"was unable to retrieve and process headers from " "was unable to retrieve and process headers from "
"the remote web server.", "the remote web server.", NULL);
NULL);
return -1; return -1;
} }
@ -1541,8 +1538,7 @@ connect_to_upstream (struct conn_s *connptr, struct request_s *request)
"Unable to connect to upstream proxy", "Unable to connect to upstream proxy",
"detail", "detail",
"A network error occurred while trying to " "A network error occurred while trying to "
"connect to the upstream web proxy.", "connect to the upstream web proxy.", NULL);
NULL);
return -1; return -1;
} }
@ -1633,8 +1629,7 @@ handle_connection (int fd)
indicate_http_error (connptr, 403, "Access denied", indicate_http_error (connptr, 403, "Access denied",
"detail", "detail",
"The administrator of this proxy has not configured " "The administrator of this proxy has not configured "
"it to service requests from your host.", "it to service requests from your host.", NULL);
NULL);
send_http_error_message (connptr); send_http_error_message (connptr);
destroy_conn (connptr); destroy_conn (connptr);
return; return;
@ -1646,8 +1641,7 @@ handle_connection (int fd)
indicate_http_error (connptr, 408, "Timeout", indicate_http_error (connptr, 408, "Timeout",
"detail", "detail",
"Server timeout waiting for the HTTP request " "Server timeout waiting for the HTTP request "
"from the client.", "from the client.", NULL);
NULL);
send_http_error_message (connptr); send_http_error_message (connptr);
destroy_conn (connptr); destroy_conn (connptr);
return; return;
@ -1719,8 +1713,7 @@ handle_connection (int fd)
log_message (LOG_CONN, log_message (LOG_CONN,
"Established connection to host \"%s\" using " "Established connection to host \"%s\" using "
"file descriptor %d.", "file descriptor %d.", request->host, connptr->server_fd);
request->host, connptr->server_fd);
if (!connptr->connect_method) if (!connptr->connect_method)
establish_http_connection (connptr, request); establish_http_connection (connptr, request);

View File

@ -52,8 +52,7 @@ reversepath_add (const char *path, const char *url)
{ {
log_message (LOG_WARNING, log_message (LOG_WARNING,
"Skipping reverse proxy rule: path '%s' " "Skipping reverse proxy rule: path '%s' "
"doesn't start with a /", "doesn't start with a /", path);
path);
return; return;
} }

View File

@ -113,8 +113,7 @@ do_transparent_proxy (struct conn_s *connptr, hashmap_t hashofheaders,
indicate_http_error (connptr, 400, "Bad Request", indicate_http_error (connptr, 400, "Bad Request",
"detail", "detail",
"You tried to connect to the machine " "You tried to connect to the machine "
"the proxy is running on", "the proxy is running on", "url", url, NULL);
"url", url, NULL);
return 0; return 0;
} }