diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-09-07 19:29:22 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-09-07 19:29:22 +0400 |
commit | 59cf56c5d975725be9e2adc84170ffe0c638fa48 (patch) | |
tree | d355ce8975bbcacc29cdf54ffac45c84b55649a0 /src/event | |
parent | aab4d8c0c4aa068cc7ddcb1c5daee330d9dec47a (diff) |
nginx-0.0.10-2004-09-07-19:29:22 import
Diffstat (limited to 'src/event')
-rw-r--r-- | src/event/ngx_event.h | 1 | ||||
-rw-r--r-- | src/event/ngx_event_connect.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/event/ngx_event.h b/src/event/ngx_event.h index b4933daf8..8c0185d77 100644 --- a/src/event/ngx_event.h +++ b/src/event/ngx_event.h @@ -388,6 +388,7 @@ extern ngx_event_actions_t ngx_event_actions; #define ngx_recv ngx_io.recv #define ngx_recv_chain ngx_io.recv_chain +#define ngx_send ngx_io.send #define ngx_send_chain ngx_io.send_chain diff --git a/src/event/ngx_event_connect.c b/src/event/ngx_event_connect.c index 4b451379b..f0fb691d0 100644 --- a/src/event/ngx_event_connect.c +++ b/src/event/ngx_event_connect.c @@ -252,7 +252,7 @@ int ngx_event_connect_peer(ngx_peer_connection_t *pc) ngx_memzero(&addr, sizeof(struct sockaddr_in)); addr.sin_family = AF_INET; - addr.sin_port = (u_short) peer->port; + addr.sin_port = peer->port; addr.sin_addr.s_addr = peer->addr; ngx_log_debug2(NGX_LOG_DEBUG_EVENT, pc->log, 0, |