summaryrefslogtreecommitdiffstats
path: root/sway/ipc-server.c
diff options
context:
space:
mode:
authorLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-04-17 16:26:26 +0200
committerLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-04-17 16:51:33 +0200
commitf39034a55f6303c4729a72722a7e1c34d93936af (patch)
treeee675dd29adbc678307fafe1a22163d8b2cf4c4e /sway/ipc-server.c
parentAdd support for pango markup (diff)
downloadsway-f39034a55f6303c4729a72722a7e1c34d93936af.tar.gz
sway-f39034a55f6303c4729a72722a7e1c34d93936af.tar.zst
sway-f39034a55f6303c4729a72722a7e1c34d93936af.zip
Use correct format string for x86_64 and i686
Fix #587
Diffstat (limited to 'sway/ipc-server.c')
-rw-r--r--sway/ipc-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/ipc-server.c b/sway/ipc-server.c
index 9ea034d1..f6116921 100644
--- a/sway/ipc-server.c
+++ b/sway/ipc-server.c
@@ -205,7 +205,7 @@ int ipc_client_handle_readable(int client_fd, uint32_t mask, void *data) {
205 client->payload_length = buf32[0]; 205 client->payload_length = buf32[0];
206 client->current_command = (enum ipc_command_type)buf32[1]; 206 client->current_command = (enum ipc_command_type)buf32[1];
207 207
208 if (read_available - received >= client->payload_length) { 208 if (read_available - received >= (long)client->payload_length) {
209 ipc_client_handle_command(client); 209 ipc_client_handle_command(client);
210 } 210 }
211 211