From 8e8b9b93f4fbd1680430c04904f560a67a0591c5 Mon Sep 17 00:00:00 2001 From: stfn Date: Fri, 26 Aug 2011 03:44:42 +0200 Subject: [PATCH] ipc.c: Fix warning --- src/ipc.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.39.5