From: Ruslan Ermilov Date: Fri, 20 May 2016 14:02:04 +0000 (+0300) Subject: Belatedly changed the ngx_create_listening() prototype. X-Git-Tag: release-1.11.0~14 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=61fbcd1cad8b2ba3f160c64ed8ddb3f19a11bd9c;p=nginx.git Belatedly changed the ngx_create_listening() prototype. The function is called only with "struct sockaddr *" since 0.7.58. --- diff --git a/src/core/ngx_connection.c b/src/core/ngx_connection.c index 5a53bac31..19ec4ab75 100644 --- a/src/core/ngx_connection.c +++ b/src/core/ngx_connection.c @@ -17,7 +17,8 @@ static void ngx_drain_connections(void); ngx_listening_t * -ngx_create_listening(ngx_conf_t *cf, void *sockaddr, socklen_t socklen) +ngx_create_listening(ngx_conf_t *cf, struct sockaddr *sockaddr, + socklen_t socklen) { size_t len; ngx_listening_t *ls; diff --git a/src/core/ngx_connection.h b/src/core/ngx_connection.h index 6357c645d..5e07e3174 100644 --- a/src/core/ngx_connection.h +++ b/src/core/ngx_connection.h @@ -210,7 +210,7 @@ struct ngx_connection_s { } -ngx_listening_t *ngx_create_listening(ngx_conf_t *cf, void *sockaddr, +ngx_listening_t *ngx_create_listening(ngx_conf_t *cf, struct sockaddr *sockaddr, socklen_t socklen); ngx_int_t ngx_clone_listening(ngx_conf_t *cf, ngx_listening_t *ls); ngx_int_t ngx_set_inherited_sockets(ngx_cycle_t *cycle);