mirror of
https://github.com/swaywm/sway.git
synced 2024-11-17 13:42:36 +00:00
Minor style fix
This commit is contained in:
parent
c068f47ce3
commit
22675b0111
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue