From: stfn Date: Fri, 26 Aug 2011 01:44:42 +0000 (+0200) Subject: ipc.c: Fix warning X-Git-Tag: 4.1~188^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8e8b9b93f4fbd1680430c04904f560a67a0591c5;p=i3%2Fi3 ipc.c: Fix warning --- diff --git a/src/ipc.c b/src/ipc.c index 7ec2592b..577538c2 100644 --- a/src/ipc.c +++ b/src/ipc.c @@ -490,7 +490,11 @@ IPC_HANDLER(get_marks) { y(array_close); const unsigned char *payload; +#if YAJL_MAJOR >= 2 + size_t length; +#else unsigned int length; +#endif y(get_buf, &payload, &length); ipc_send_message(fd, payload, I3_IPC_REPLY_TYPE_MARKS, length);