ipc_client_timeout: Fix build when not on linux

Also moved the 'end' label because it is unused otherwise.

Reported here: https://github.com/Airblader/i3/issues/233
This commit is contained in:
Orestis Floros 2018-08-27 22:19:36 +03:00
parent 08a53611f9
commit 37b879f4ad
No known key found for this signature in database
GPG Key ID: E9AD9F32E401E38F
1 changed files with 5 additions and 3 deletions

View File

@ -1414,12 +1414,14 @@ static void ipc_client_timeout(EV_P_ ev_timer *w, int revents) {
}
}
cmdline = buf;
#endif
end:
if (cmdline) {
ELOG("client %p with pid %d and cmdline '%s' on fd %d timed out, killing\n", client, peercred.pid, cmdline, client->fd);
} else {
}
end:
#endif
if (!cmdline) {
ELOG("client %p on fd %d timed out, killing\n", client, client->fd);
}