[nginx] Belatedly changed the ngx_create_listening() prototype.

Ruslan Ermilov ru at nginx.com
Fri May 20 14:05:24 UTC 2016


details:   http://hg.nginx.org/nginx/rev/090a78da4f88
branches:  
changeset: 6555:090a78da4f88
user:      Ruslan Ermilov <ru at nginx.com>
date:      Fri May 20 17:02:04 2016 +0300
description:
Belatedly changed the ngx_create_listening() prototype.

The function is called only with "struct sockaddr *" since 0.7.58.

diffstat:

 src/core/ngx_connection.c |  3 ++-
 src/core/ngx_connection.h |  2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r 1aa9650a8154 -r 090a78da4f88 src/core/ngx_connection.c
--- a/src/core/ngx_connection.c	Thu May 19 14:46:32 2016 +0300
+++ b/src/core/ngx_connection.c	Fri May 20 17:02:04 2016 +0300
@@ -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 -r 1aa9650a8154 -r 090a78da4f88 src/core/ngx_connection.h
--- a/src/core/ngx_connection.h	Thu May 19 14:46:32 2016 +0300
+++ b/src/core/ngx_connection.h	Fri May 20 17:02:04 2016 +0300
@@ -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);



More information about the nginx-devel mailing list