aboutsummaryrefslogtreecommitdiff
path: root/src/core/nginx.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2002-12-19 07:08:55 +0000
committerIgor Sysoev <igor@sysoev.ru>2002-12-19 07:08:55 +0000
commit8809257531cc21aab3a25bb487e9424175cdfddd (patch)
tree42efffb011487a9e62014a7aee1607d51f233dd6 /src/core/nginx.c
parent140464d638353addea305e73d247ca6711f668aa (diff)
downloadnginx-8809257531cc21aab3a25bb487e9424175cdfddd.tar.gz
nginx-8809257531cc21aab3a25bb487e9424175cdfddd.zip
nginx-0.0.1-2002-12-19-10:08:55 import
Diffstat (limited to 'src/core/nginx.c')
-rw-r--r--src/core/nginx.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/nginx.c b/src/core/nginx.c
index e654e7e75..3d1d11de6 100644
--- a/src/core/nginx.c
+++ b/src/core/nginx.c
@@ -126,7 +126,7 @@ static void ngx_open_listening_sockets(ngx_log_t *log)
ls[i].flags);
if (s == -1) {
ngx_log_error(NGX_LOG_EMERG, log, ngx_socket_errno,
- ngx_socket_n " %s falied", ls[i].addr_text);
+ ngx_socket_n " %s falied", ls[i].addr_text.data);
exit(1);
}
@@ -134,7 +134,7 @@ static void ngx_open_listening_sockets(ngx_log_t *log)
(const void *) &reuseaddr, sizeof(int)) == -1) {
ngx_log_error(NGX_LOG_EMERG, log, ngx_socket_errno,
"setsockopt(SO_REUSEADDR) %s failed",
- ls[i].addr_text);
+ ls[i].addr_text.data);
exit(1);
}
@@ -144,7 +144,7 @@ static void ngx_open_listening_sockets(ngx_log_t *log)
if (ngx_nonblocking(s) == -1) {
ngx_log_error(NGX_LOG_EMERG, log, ngx_socket_errno,
ngx_nonblocking_n " %s failed",
- ls[i].addr_text);
+ ls[i].addr_text.data);
exit(1);
}
}
@@ -152,7 +152,7 @@ static void ngx_open_listening_sockets(ngx_log_t *log)
if (bind(s, ls[i].sockaddr, ls[i].socklen) == -1) {
err = ngx_socket_errno;
ngx_log_error(NGX_LOG_EMERG, log, err,
- "bind() to %s failed", ls[i].addr_text);
+ "bind() to %s failed", ls[i].addr_text.data);
if (err != NGX_EADDRINUSE)
exit(1);
@@ -160,7 +160,7 @@ static void ngx_open_listening_sockets(ngx_log_t *log)
if (ngx_close_socket(s) == -1)
ngx_log_error(NGX_LOG_EMERG, log, ngx_socket_errno,
ngx_close_socket_n " %s failed",
- ls[i].addr_text);
+ ls[i].addr_text.data);
failed = 1;
continue;
@@ -168,7 +168,7 @@ static void ngx_open_listening_sockets(ngx_log_t *log)
if (listen(s, ls[i].backlog) == -1) {
ngx_log_error(NGX_LOG_EMERG, log, ngx_socket_errno,
- "listen() to %s failed", ls[i].addr_text);
+ "listen() to %s failed", ls[i].addr_text.data);
exit(1);
}