ipc.c: Fix warning

This commit is contained in:
stfn 2011-08-26 03:44:42 +02:00 committed by Michael Stapelberg
parent 7d2978ead4
commit 8e8b9b93f4
1 changed files with 4 additions and 0 deletions

View File

@ -490,7 +490,11 @@ IPC_HANDLER(get_marks) {
y(array_close); y(array_close);
const unsigned char *payload; const unsigned char *payload;
#if YAJL_MAJOR >= 2
size_t length;
#else
unsigned int length; unsigned int length;
#endif
y(get_buf, &payload, &length); y(get_buf, &payload, &length);
ipc_send_message(fd, payload, I3_IPC_REPLY_TYPE_MARKS, length); ipc_send_message(fd, payload, I3_IPC_REPLY_TYPE_MARKS, length);