diff options
| author | Ruslan Ermilov <ru@nginx.com> | 2016-05-23 16:37:20 +0300 |
|---|---|---|
| committer | Ruslan Ermilov <ru@nginx.com> | 2016-05-23 16:37:20 +0300 |
| commit | fd064d3b88e59ee71aec508687403539b01d643c (patch) | |
| tree | 8cec8e57171f8484d0e720b51b331e716d843a1d /src/http/modules | |
| parent | d650688ba5f966bd13b5449b52192b19a4715ee4 (diff) | |
| download | nginx-fd064d3b88e59ee71aec508687403539b01d643c.tar.gz nginx-fd064d3b88e59ee71aec508687403539b01d643c.tar.bz2 | |
Introduced the ngx_sockaddr_t type.
It's properly aligned and can hold any supported sockaddr.
Diffstat (limited to 'src/http/modules')
| -rw-r--r-- | src/http/modules/ngx_http_upstream_keepalive_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_upstream_keepalive_module.c b/src/http/modules/ngx_http_upstream_keepalive_module.c index 85bfcdb0e..0048e6bce 100644 --- a/src/http/modules/ngx_http_upstream_keepalive_module.c +++ b/src/http/modules/ngx_http_upstream_keepalive_module.c @@ -29,7 +29,7 @@ typedef struct { ngx_connection_t *connection; socklen_t socklen; - u_char sockaddr[NGX_SOCKADDRLEN]; + ngx_sockaddr_t sockaddr; } ngx_http_upstream_keepalive_cache_t; |
