summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2009-06-11 09:38:54 +0000
committerStefan Bühler <stbuehler@web.de>2009-06-11 09:38:54 +0000
commit12c793496fcd6046f99ad5f0e949a158a21a01ae (patch)
tree05c66714c5f531a6da3427005db3474b003fa47c
parentccd3f55ad9ddb6d4a4a78c52ba9a4700ee3f2145 (diff)
downloadlighttpd-git-12c793496fcd6046f99ad5f0e949a158a21a01ae.tar.gz
Fix unused var in log.c
git-svn-id: svn+ssh://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2523 152afb58-edef-0310-8abb-c4023f1b3aa9
-rw-r--r--src/log.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/log.c b/src/log.c
index 56cfe0c2..e65532d7 100644
--- a/src/log.c
+++ b/src/log.c
@@ -63,7 +63,6 @@ int open_logfile_or_pipe(server *srv, const char* logfile) {
int to_log_fds[2];
pid_t pid;
- int i;
if (pipe(to_log_fds)) {
log_error_write(srv, __FILE__, __LINE__, "ss", "pipe failed: ", strerror(errno));
@@ -88,9 +87,12 @@ int open_logfile_or_pipe(server *srv, const char* logfile) {
close(to_log_fds[1]);
#ifndef FD_CLOEXEC
- /* we don't need the client socket */
- for (i = 3; i < 256; i++) {
- close(i);
+ {
+ int i;
+ /* we don't need the client socket */
+ for (i = 3; i < 256; i++) {
+ close(i);
+ }
}
#endif