ipc.c: Fix warning
This commit is contained in:
parent
7d2978ead4
commit
8e8b9b93f4
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue