# HG changeset patch # User Igor Sysoev # Date 1257174857 0 # Node ID f0d596e84634bb186d2cde6280b32680ba4d63ad # Parent c6a40c815d4529596782f682e106620a99327200 rename ngx_peer_addr_t to ngx_addr_t diff -r c6a40c815d45 -r f0d596e84634 src/core/ngx_inet.c --- a/src/core/ngx_inet.c Mon Nov 02 14:32:46 2009 +0000 +++ b/src/core/ngx_inet.c Mon Nov 02 15:14:17 2009 +0000 @@ -485,7 +485,7 @@ 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 @@ /* 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 @@ /* 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 -r c6a40c815d45 -r f0d596e84634 src/core/ngx_inet.h --- a/src/core/ngx_inet.h Mon Nov 02 14:32:46 2009 +0000 +++ b/src/core/ngx_inet.h Mon Nov 02 15:14:17 2009 +0000 @@ -70,7 +70,7 @@ struct sockaddr *sockaddr; socklen_t socklen; ngx_str_t name; -} ngx_peer_addr_t; +} ngx_addr_t; typedef struct { @@ -94,7 +94,7 @@ socklen_t socklen; u_char sockaddr[NGX_SOCKADDRLEN]; - ngx_peer_addr_t *addrs; + ngx_addr_t *addrs; ngx_uint_t naddrs; char *err; diff -r c6a40c815d45 -r f0d596e84634 src/core/ngx_resolver.c --- a/src/core/ngx_resolver.c Mon Nov 02 14:32:46 2009 +0000 +++ b/src/core/ngx_resolver.c Mon Nov 02 15:14:17 2009 +0000 @@ -92,7 +92,7 @@ /* 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 -r c6a40c815d45 -r f0d596e84634 src/core/ngx_resolver.h --- a/src/core/ngx_resolver.h Mon Nov 02 14:32:46 2009 +0000 +++ b/src/core/ngx_resolver.h Mon Nov 02 15:14:17 2009 +0000 @@ -135,7 +135,7 @@ }; -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 -r c6a40c815d45 -r f0d596e84634 src/http/ngx_http_upstream.h --- a/src/http/ngx_http_upstream.h Mon Nov 02 14:32:46 2009 +0000 +++ b/src/http/ngx_http_upstream.h Mon Nov 02 15:14:17 2009 +0000 @@ -80,7 +80,7 @@ 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 -r c6a40c815d45 -r f0d596e84634 src/mail/ngx_mail.h --- a/src/mail/ngx_mail.h Mon Nov 02 14:32:46 2009 +0000 +++ b/src/mail/ngx_mail.h Mon Nov 02 15:14:17 2009 +0000 @@ -394,7 +394,7 @@ /* 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 -r c6a40c815d45 -r f0d596e84634 src/mail/ngx_mail_auth_http_module.c --- a/src/mail/ngx_mail_auth_http_module.c Mon Nov 02 14:32:46 2009 +0000 +++ b/src/mail/ngx_mail_auth_http_module.c Mon Nov 02 15:14:17 2009 +0000 @@ -12,7 +12,7 @@ typedef struct { - ngx_peer_addr_t *peer; + ngx_addr_t *peer; ngx_msec_t timeout; @@ -457,7 +457,7 @@ 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 @@ 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 -r c6a40c815d45 -r f0d596e84634 src/mail/ngx_mail_proxy_module.c --- a/src/mail/ngx_mail_proxy_module.c Mon Nov 02 14:32:46 2009 +0000 +++ b/src/mail/ngx_mail_proxy_module.c Mon Nov 02 15:14:17 2009 +0000 @@ -108,7 +108,7 @@ 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 -r c6a40c815d45 -r f0d596e84634 src/mysql/ngx_http_mysql_test.c --- a/src/mysql/ngx_http_mysql_test.c Mon Nov 02 14:32:46 2009 +0000 +++ b/src/mysql/ngx_http_mysql_test.c Mon Nov 02 15:14:17 2009 +0000 @@ -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;