Belatedly changed the ngx_create_listening() prototype.

The function is called only with "struct sockaddr *" since 0.7.58.
This commit is contained in:
Ruslan Ermilov 2016-05-20 17:02:04 +03:00
parent 61ec58a9be
commit 61fbcd1cad
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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);