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/mail/ngx_mail.h | |
parent | d650688ba5f966bd13b5449b52192b19a4715ee4 (diff) | |
download | nginx-fd064d3b88e59ee71aec508687403539b01d643c.tar.gz nginx-fd064d3b88e59ee71aec508687403539b01d643c.zip |
Introduced the ngx_sockaddr_t type.
It's properly aligned and can hold any supported sockaddr.
Diffstat (limited to 'src/mail/ngx_mail.h')
-rw-r--r-- | src/mail/ngx_mail.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/mail/ngx_mail.h b/src/mail/ngx_mail.h index cc5b15c2d..277f92060 100644 --- a/src/mail/ngx_mail.h +++ b/src/mail/ngx_mail.h @@ -27,17 +27,7 @@ typedef struct { typedef struct { - union { - struct sockaddr sockaddr; - struct sockaddr_in sockaddr_in; -#if (NGX_HAVE_INET6) - struct sockaddr_in6 sockaddr_in6; -#endif -#if (NGX_HAVE_UNIX_DOMAIN) - struct sockaddr_un sockaddr_un; -#endif - } u; - + ngx_sockaddr_t u; socklen_t socklen; /* server ctx */ |