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 | Fix potential crash when toggling fullscreen mode (diff) | |
download | sway-22675b01118766c980d9c9c66453fb5d5318cdef.tar.gz sway-22675b01118766c980d9c9c66453fb5d5318cdef.tar.zst sway-22675b01118766c980d9c9c66453fb5d5318cdef.zip |
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[] = { | |||
19 | void init_log(int verbosity) { | 19 | void init_log(int verbosity) { |
20 | v = verbosity; | 20 | v = verbosity; |
21 | /* set FD_CLOEXEC flag to prevent programs called with exec to write into logs */ | 21 | /* set FD_CLOEXEC flag to prevent programs called with exec to write into logs */ |
22 | int i, flag; | 22 | int i; |
23 | int fd[] = { STDOUT_FILENO, STDIN_FILENO, STDERR_FILENO }; | 23 | int fd[] = { STDOUT_FILENO, STDIN_FILENO, STDERR_FILENO }; |
24 | for (i = 0; i < 3; ++i) { | 24 | for (i = 0; i < 3; ++i) { |
25 | flag = fcntl(fd[i], F_GETFD); | 25 | int flag = fcntl(fd[i], F_GETFD); |
26 | if (flag != -1) { | 26 | if (flag != -1) { |
27 | fcntl(fd[i], F_SETFD, flag | FD_CLOEXEC); | 27 | fcntl(fd[i], F_SETFD, flag | FD_CLOEXEC); |
28 | } | 28 | } |