diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-11-02 19:11:06 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-11-02 19:11:06 +0300 |
commit | 8b816d88a93bf98e0557ef4568e5ee9ab6f44bd3 (patch) | |
tree | efbd320ffa1cfa5bd0c37526baaa80b5939d535d /src/core/ngx_inet.h | |
parent | 72e928755ba63b803c0b2478f6d8d1e792e95b86 (diff) |
change ngx_parse_addr() interface
Diffstat (limited to 'src/core/ngx_inet.h')
-rw-r--r-- | src/core/ngx_inet.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/ngx_inet.h b/src/core/ngx_inet.h index 3ac2e372e..f708c074d 100644 --- a/src/core/ngx_inet.h +++ b/src/core/ngx_inet.h @@ -109,7 +109,8 @@ size_t ngx_sock_ntop(struct sockaddr *sa, u_char *text, size_t len, ngx_uint_t port); size_t ngx_inet_ntop(int family, void *addr, u_char *text, size_t len); ngx_int_t ngx_ptocidr(ngx_str_t *text, ngx_cidr_t *cidr); -ngx_addr_t *ngx_parse_addr(ngx_pool_t *pool, ngx_str_t *addr); +ngx_int_t ngx_parse_addr(ngx_pool_t *pool, ngx_addr_t *addr, u_char *text, + size_t len); ngx_int_t ngx_parse_url(ngx_pool_t *pool, ngx_url_t *u); ngx_int_t ngx_inet_resolve_host(ngx_pool_t *pool, ngx_url_t *u); |