]> git.sur5r.net Git - i3/i3/commitdiff
ipc_client_timeout: Fix build when not on linux 3375/head
authorOrestis Floros <orestisf1993@gmail.com>
Mon, 27 Aug 2018 19:19:36 +0000 (22:19 +0300)
committerOrestis Floros <orestisf1993@gmail.com>
Mon, 27 Aug 2018 19:21:59 +0000 (22:21 +0300)
Also moved the 'end' label because it is unused otherwise.

Reported here: https://github.com/Airblader/i3/issues/233

src/ipc.c

index 977fe3778ceb02ccded78d7a61ba09063a005e05..3022d5b399bd99d6f382a33e9d533e0f2cb85b4d 100644 (file)
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -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);
     }