summaryrefslogtreecommitdiffstats
path: root/usr.sbin/nginx/src/core/ngx_log.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/nginx/src/core/ngx_log.c')
-rw-r--r--usr.sbin/nginx/src/core/ngx_log.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/nginx/src/core/ngx_log.c b/usr.sbin/nginx/src/core/ngx_log.c
index b62687433ea..982c2ed52a7 100644
--- a/usr.sbin/nginx/src/core/ngx_log.c
+++ b/usr.sbin/nginx/src/core/ngx_log.c
@@ -215,7 +215,7 @@ ngx_log_error_core(ngx_uint_t level, ngx_log_t *log, ngx_err_t err,
#if (NGX_ENABLE_SYSLOG)
if (log->file != NULL && log->file->name.len != 0) {
- (void) ngx_write_fd(log->file->fd, errstr, p - errstr);
+ (void) ngx_write_fd(log->file->fd, errstr, p - errstr);
}
/* Don't send the debug level info to syslog */
@@ -464,7 +464,7 @@ ngx_log_get_priority(ngx_conf_t *cf, ngx_str_t *priority)
ngx_uint_t n, match = 0;
for (n = 0; ngx_syslog_priorities[n].name.len != 0; n++) {
- if (ngx_strncmp(priority->data, ngx_syslog_priorities[n].name.data,
+ if (ngx_strncmp(priority->data, ngx_syslog_priorities[n].name.data,
ngx_syslog_priorities[n].name.len) == 0) {
p = ngx_syslog_priorities[n].macro;
match = 1;
@@ -645,7 +645,7 @@ ngx_set_syslog(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
{
char *program;
ngx_str_t *value;
- ngx_int_t facility = SYSLOG_FACILITY, match = 0;
+ ngx_int_t facility, match = 0;
ngx_uint_t n;
value = cf->args->elts;
@@ -657,7 +657,7 @@ ngx_set_syslog(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
cf->cycle->new_log.syslog_set = 1;
for (n = 0; ngx_syslog_facilities[n].name.len != 0; n++) {
- if (ngx_strncmp(value[1].data, ngx_syslog_facilities[n].name.data,
+ if (ngx_strncmp(value[1].data, ngx_syslog_facilities[n].name.data,
ngx_syslog_facilities[n].name.len) == 0) {
facility = ngx_syslog_facilities[n].macro;
match = 1;
@@ -675,7 +675,7 @@ ngx_set_syslog(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
return NGX_CONF_ERROR;
}
- program = SYSLOG_IDENT_NAME;
+ program = SYSLOG_IDENT_NAME;
if (cf->args->nelts > 2) {
program = (char *) value[2].data;
}