mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
make ngx_inet6_ntop() non-static
This commit is contained in:
parent
612ecb7674
commit
fd078fd6d5
@ -8,9 +8,6 @@
|
||||
#include <ngx_core.h>
|
||||
|
||||
|
||||
#if (NGX_HAVE_INET6)
|
||||
static size_t ngx_inet6_ntop(u_char *p, u_char *text, size_t len);
|
||||
#endif
|
||||
static ngx_int_t ngx_parse_unix_domain_url(ngx_pool_t *pool, ngx_url_t *u);
|
||||
static ngx_int_t ngx_parse_inet_url(ngx_pool_t *pool, ngx_url_t *u);
|
||||
static ngx_int_t ngx_parse_inet6_url(ngx_pool_t *pool, ngx_url_t *u);
|
||||
@ -278,7 +275,7 @@ ngx_inet_ntop(int family, void *addr, u_char *text, size_t len)
|
||||
|
||||
#if (NGX_HAVE_INET6)
|
||||
|
||||
static size_t
|
||||
size_t
|
||||
ngx_inet6_ntop(u_char *p, u_char *text, size_t len)
|
||||
{
|
||||
u_char *dst;
|
||||
|
@ -104,6 +104,7 @@ typedef struct {
|
||||
in_addr_t ngx_inet_addr(u_char *text, size_t len);
|
||||
#if (NGX_HAVE_INET6)
|
||||
ngx_int_t ngx_inet6_addr(u_char *p, size_t len, u_char *addr);
|
||||
size_t ngx_inet6_ntop(u_char *p, u_char *text, size_t len);
|
||||
#endif
|
||||
size_t ngx_sock_ntop(struct sockaddr *sa, u_char *text, size_t len,
|
||||
ngx_uint_t port);
|
||||
|
Loading…
Reference in New Issue
Block a user