diff options
author | Alexander 'z33ky' Hirsch <1zeeky@gmail.com> | 2015-08-20 02:17:46 +0200 |
---|---|---|
committer | Alexander 'z33ky' Hirsch <1zeeky@gmail.com> | 2015-08-20 02:30:22 +0200 |
commit | 22675b01118766c980d9c9c66453fb5d5318cdef (patch) | |
tree | 5a7534bb4b23436fe1a2c9ff4ab3abe379074ba0 | |
parent | c068f47ce392dab0374b619d6a501ab6974749cc (diff) |
Minor style fix
-rw-r--r-- | sway/log.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -19,10 +19,10 @@ static const char *verbosity_colors[] = { void init_log(int verbosity) { v = verbosity; /* set FD_CLOEXEC flag to prevent programs called with exec to write into logs */ - int i, flag; + int i; int fd[] = { STDOUT_FILENO, STDIN_FILENO, STDERR_FILENO }; for (i = 0; i < 3; ++i) { - flag = fcntl(fd[i], F_GETFD); + int flag = fcntl(fd[i], F_GETFD); if (flag != -1) { fcntl(fd[i], F_SETFD, flag | FD_CLOEXEC); } |