summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-11-02 15:14:17 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-11-02 15:14:17 +0000
commit0c189c5159e8af6836ac985270da6a2ddff62456 (patch)
treec14653544473f2f339be1e02193e11f46b86bb05 /src
parent67765e89188c58fba8b70605bf8da742666e7d7e (diff)
downloadnginx-0c189c5159e8af6836ac985270da6a2ddff62456.tar.gz
nginx-0c189c5159e8af6836ac985270da6a2ddff62456.tar.bz2
rename ngx_peer_addr_t to ngx_addr_t
Diffstat (limited to 'src')
-rw-r--r--src/core/ngx_inet.c6
-rw-r--r--src/core/ngx_inet.h4
-rw-r--r--src/core/ngx_resolver.c2
-rw-r--r--src/core/ngx_resolver.h2
-rw-r--r--src/http/ngx_http_upstream.h2
-rw-r--r--src/mail/ngx_mail.h2
-rw-r--r--src/mail/ngx_mail_auth_http_module.c6
-rw-r--r--src/mail/ngx_mail_proxy_module.c2
-rw-r--r--src/mysql/ngx_http_mysql_test.c4
9 files changed, 15 insertions, 15 deletions
diff --git a/src/core/ngx_inet.c b/src/core/ngx_inet.c
index 7dfd3413e..5d2f86ecf 100644
--- a/src/core/ngx_inet.c
+++ b/src/core/ngx_inet.c
@@ -485,7 +485,7 @@ ngx_parse_unix_domain_url(ngx_pool_t *pool, ngx_url_t *u)
saun->sun_family = AF_UNIX;
(void) ngx_cpystrn((u_char *) saun->sun_path, path, len);
- u->addrs = ngx_pcalloc(pool, sizeof(ngx_peer_addr_t));
+ u->addrs = ngx_pcalloc(pool, sizeof(ngx_addr_t));
if (u->addrs == NULL) {
return NGX_ERROR;
}
@@ -846,7 +846,7 @@ ngx_inet_resolve_host(ngx_pool_t *pool, ngx_url_t *u)
/* MP: ngx_shared_palloc() */
- u->addrs = ngx_pcalloc(pool, i * sizeof(ngx_peer_addr_t));
+ u->addrs = ngx_pcalloc(pool, i * sizeof(ngx_addr_t));
if (u->addrs == NULL) {
return NGX_ERROR;
}
@@ -884,7 +884,7 @@ ngx_inet_resolve_host(ngx_pool_t *pool, ngx_url_t *u)
/* MP: ngx_shared_palloc() */
- u->addrs = ngx_pcalloc(pool, sizeof(ngx_peer_addr_t));
+ u->addrs = ngx_pcalloc(pool, sizeof(ngx_addr_t));
if (u->addrs == NULL) {
return NGX_ERROR;
}
diff --git a/src/core/ngx_inet.h b/src/core/ngx_inet.h
index f3bf9e4e1..7e8cce68d 100644
--- a/src/core/ngx_inet.h
+++ b/src/core/ngx_inet.h
@@ -70,7 +70,7 @@ typedef struct {
struct sockaddr *sockaddr;
socklen_t socklen;
ngx_str_t name;
-} ngx_peer_addr_t;
+} ngx_addr_t;
typedef struct {
@@ -94,7 +94,7 @@ typedef struct {
socklen_t socklen;
u_char sockaddr[NGX_SOCKADDRLEN];
- ngx_peer_addr_t *addrs;
+ ngx_addr_t *addrs;
ngx_uint_t naddrs;
char *err;
diff --git a/src/core/ngx_resolver.c b/src/core/ngx_resolver.c
index d0ba8bc4e..9adc2d223 100644
--- a/src/core/ngx_resolver.c
+++ b/src/core/ngx_resolver.c
@@ -92,7 +92,7 @@ static void *ngx_resolver_dup(ngx_resolver_t *r, void *src, size_t size);
/* STUB: ngx_peer_addr_t * */
ngx_resolver_t *
-ngx_resolver_create(ngx_conf_t *cf, ngx_peer_addr_t *addr)
+ngx_resolver_create(ngx_conf_t *cf, ngx_addr_t *addr)
{
ngx_resolver_t *r;
ngx_pool_cleanup_t *cln;
diff --git a/src/core/ngx_resolver.h b/src/core/ngx_resolver.h
index 6c4afac97..3e7c388da 100644
--- a/src/core/ngx_resolver.h
+++ b/src/core/ngx_resolver.h
@@ -135,7 +135,7 @@ struct ngx_resolver_ctx_s {
};
-ngx_resolver_t *ngx_resolver_create(ngx_conf_t *cf, ngx_peer_addr_t *addr);
+ngx_resolver_t *ngx_resolver_create(ngx_conf_t *cf, ngx_addr_t *addr);
ngx_resolver_ctx_t *ngx_resolve_start(ngx_resolver_t *r,
ngx_resolver_ctx_t *temp);
ngx_int_t ngx_resolve_name(ngx_resolver_ctx_t *ctx);
diff --git a/src/http/ngx_http_upstream.h b/src/http/ngx_http_upstream.h
index b0c8a60a2..2d3bc2000 100644
--- a/src/http/ngx_http_upstream.h
+++ b/src/http/ngx_http_upstream.h
@@ -80,7 +80,7 @@ typedef struct {
typedef struct {
- ngx_peer_addr_t *addrs;
+ ngx_addr_t *addrs;
ngx_uint_t naddrs;
ngx_uint_t weight;
ngx_uint_t max_fails;
diff --git a/src/mail/ngx_mail.h b/src/mail/ngx_mail.h
index 32f2edd01..fd6d318a5 100644
--- a/src/mail/ngx_mail.h
+++ b/src/mail/ngx_mail.h
@@ -394,7 +394,7 @@ char *ngx_mail_capabilities(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
/* STUB */
-void ngx_mail_proxy_init(ngx_mail_session_t *s, ngx_peer_addr_t *peer);
+void ngx_mail_proxy_init(ngx_mail_session_t *s, ngx_addr_t *peer);
void ngx_mail_auth_http_init(ngx_mail_session_t *s);
/**/
diff --git a/src/mail/ngx_mail_auth_http_module.c b/src/mail/ngx_mail_auth_http_module.c
index a27b11602..c755c7221 100644
--- a/src/mail/ngx_mail_auth_http_module.c
+++ b/src/mail/ngx_mail_auth_http_module.c
@@ -12,7 +12,7 @@
typedef struct {
- ngx_peer_addr_t *peer;
+ ngx_addr_t *peer;
ngx_msec_t timeout;
@@ -457,7 +457,7 @@ ngx_mail_auth_http_process_headers(ngx_mail_session_t *s,
time_t timer;
size_t len, size;
ngx_int_t rc, port, n;
- ngx_peer_addr_t *peer;
+ ngx_addr_t *peer;
struct sockaddr_in *sin;
ngx_log_debug0(NGX_LOG_DEBUG_MAIL, s->connection->log, 0,
@@ -764,7 +764,7 @@ ngx_mail_auth_http_process_headers(ngx_mail_session_t *s,
return;
}
- peer = ngx_pcalloc(s->connection->pool, sizeof(ngx_peer_addr_t));
+ peer = ngx_pcalloc(s->connection->pool, sizeof(ngx_addr_t));
if (peer == NULL) {
ngx_destroy_pool(ctx->pool);
ngx_mail_session_internal_server_error(s);
diff --git a/src/mail/ngx_mail_proxy_module.c b/src/mail/ngx_mail_proxy_module.c
index b408ed7d3..168977604 100644
--- a/src/mail/ngx_mail_proxy_module.c
+++ b/src/mail/ngx_mail_proxy_module.c
@@ -108,7 +108,7 @@ static u_char smtp_auth_ok[] = "235 2.0.0 OK" CRLF;
void
-ngx_mail_proxy_init(ngx_mail_session_t *s, ngx_peer_addr_t *peer)
+ngx_mail_proxy_init(ngx_mail_session_t *s, ngx_addr_t *peer)
{
int keepalive;
ngx_int_t rc;
diff --git a/src/mysql/ngx_http_mysql_test.c b/src/mysql/ngx_http_mysql_test.c
index 6b9d7b019..b618bd64d 100644
--- a/src/mysql/ngx_http_mysql_test.c
+++ b/src/mysql/ngx_http_mysql_test.c
@@ -10,8 +10,8 @@
typedef struct {
- ngx_peer_addr_t *peers;
- ngx_uint_t npeers;
+ ngx_addr_t *peers;
+ ngx_uint_t npeers;
} ngx_http_mysql_test_conf_t;