Mercurial > hg > nginx
diff src/http/ngx_http.c @ 57:a499e0d1f16e
nginx-0.0.1-2003-01-30-10:28:09 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 30 Jan 2003 07:28:09 +0000 |
parents | 058f01f78761 |
children | e8cdc2989cee |
line wrap: on
line diff
--- a/src/http/ngx_http.c Wed Jan 29 17:02:48 2003 +0000 +++ b/src/http/ngx_http.c Thu Jan 30 07:28:09 2003 +0000 @@ -1,8 +1,10 @@ #include <ngx_config.h> + #include <ngx_string.h> #include <ngx_socket.h> #include <ngx_listen.h> +#include <ngx_inet.h> #include <ngx_http.h> #include <ngx_http_config.h> #include <ngx_http_core_module.h> @@ -324,7 +326,7 @@ ls->addr_text.len = ngx_snprintf(ls->addr_text.data + ngx_inet_ntop(AF_INET, - &in_addr[a].addr, + (char *) &in_addr[a].addr, ls->addr_text.data, INET_ADDRSTRLEN), 6, ":%d", in_port[p].port); @@ -345,6 +347,7 @@ ls->handler = ngx_http_init_connection; ls->log = cf->log; + ls->pool_size = ngx_http_connection_pool_size; ls->ctx = ctx; ls->servers = &in_port[p]; @@ -372,7 +375,7 @@ in_addr = (ngx_http_in_addr_t *) in_port[p].addr.elts; for (a = 0; a < in_port[p].addr.nelts; a++) { char ip[20]; - ngx_inet_ntop(AF_INET, &in_addr[a].addr, ip, 20); + ngx_inet_ntop(AF_INET, (char *) &in_addr[a].addr, ip, 20); ngx_log_debug(cf->log, "%s %08x" _ ip _ in_addr[a].core_srv_conf); } }