mirror of
https://github.com/nginx/nginx.git
synced 2026-06-27 04:12:05 +00:00
make ngx_inet6_ntop() non-static
This commit is contained in:
parent
612ecb7674
commit
fd078fd6d5
2 changed files with 2 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue