Welcome! Log In Create A New Profile

Advanced

[nginx] Belatedly changed the ngx_create_listening() prototype.

Ruslan Ermilov
May 20, 2016 10:06AM
details: http://hg.nginx.org/nginx/rev/090a78da4f88
branches:
changeset: 6555:090a78da4f88
user: Ruslan Ermilov <ru@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);

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Belatedly changed the ngx_create_listening() prototype.

Ruslan Ermilov 540 May 20, 2016 10:06AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 152
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready