Mercurial > hg > nginx
comparison src/core/ngx_config.h @ 2197:74477ea8074f
*) remove zero termination in ngx_inet_ntop() and ngx_sock_ntop()
*) use ngx_snprintf() in ngx_inet_ntop() and ngx_sock_ntop()
as they are called just once per connection
*) NGX_INET_ADDRSTRLEN
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 21 Aug 2008 18:47:23 +0000 |
parents | 345a014436d4 |
children | fb7995c7bdd9 |
comparison
equal
deleted
inserted
replaced
2196:fab3fa7339ff | 2197:74477ea8074f |
---|---|
114 | 114 |
115 #ifndef INADDR_NONE /* Solaris */ | 115 #ifndef INADDR_NONE /* Solaris */ |
116 #define INADDR_NONE ((unsigned int) -1) | 116 #define INADDR_NONE ((unsigned int) -1) |
117 #endif | 117 #endif |
118 | 118 |
119 #ifndef INET_ADDRSTRLEN /* Win32 */ | |
120 #define INET_ADDRSTRLEN 16 | |
121 #endif | |
122 | |
123 #ifdef MAXHOSTNAMELEN | 119 #ifdef MAXHOSTNAMELEN |
124 #define NGX_MAXHOSTNAMELEN MAXHOSTNAMELEN | 120 #define NGX_MAXHOSTNAMELEN MAXHOSTNAMELEN |
125 #else | 121 #else |
126 #define NGX_MAXHOSTNAMELEN 256 | 122 #define NGX_MAXHOSTNAMELEN 256 |
127 #endif | 123 #endif |