summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2013-03-22 16:29:10 +0000
committerderaadt <deraadt@openbsd.org>2013-03-22 16:29:10 +0000
commita56d3ff5899f731c5adf6f4f0b1a9c3491c4bb41 (patch)
tree69f461e87e600cd635391eb08335daef17ca9895
parentAdd a load of miscellaneous pane formats, from George Nachman. (diff)
downloadwireguard-openbsd-a56d3ff5899f731c5adf6f4f0b1a9c3491c4bb41.tar.xz
wireguard-openbsd-a56d3ff5899f731c5adf6f4f0b1a9c3491c4bb41.zip
decl's before code. please push to upstream.
-rw-r--r--usr.sbin/nginx/src/http/modules/ngx_http_log_module.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/nginx/src/http/modules/ngx_http_log_module.c b/usr.sbin/nginx/src/http/modules/ngx_http_log_module.c
index deceb387735..28f7d254984 100644
--- a/usr.sbin/nginx/src/http/modules/ngx_http_log_module.c
+++ b/usr.sbin/nginx/src/http/modules/ngx_http_log_module.c
@@ -359,6 +359,10 @@ ngx_http_log_write(ngx_http_request_t *r, ngx_http_log_t *log, u_char *buf,
ssize_t n;
ngx_err_t err;
+#if (NGX_ZLIB)
+ ngx_http_log_buf_t *buffer;
+#endif
+
#if (NGX_ENABLE_SYSLOG)
n = 0;
if (log->syslog_on) {
@@ -366,10 +370,6 @@ ngx_http_log_write(ngx_http_request_t *r, ngx_http_log_t *log, u_char *buf,
}
#endif
-#if (NGX_ZLIB)
- ngx_http_log_buf_t *buffer;
-#endif
-
if (log->script == NULL) {
name = log->file->name.data;