From: Ruben Kerkhof Date: Sat, 12 Mar 2016 21:50:09 +0000 (+0100) Subject: IPC: hopefully fix compiling under AIX X-Git-Tag: collectd-5.6.0~386 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d13e56d86efd2ef664f6cfda9f26b40b83a72e02;p=collectd.git IPC: hopefully fix compiling under AIX This code couldn't possibly have compiled. Found by cppcheck: [src/ipc.c:285]: (error) Invalid number of character '{' when these macros are defined: 'KERNEL_AIX'. --- diff --git a/src/ipc.c b/src/ipc.c index b4038472..645d4b08 100644 --- a/src/ipc.c +++ b/src/ipc.c @@ -298,7 +298,7 @@ static int ipc_read_msg (void) /* {{{ */ msg_alloc_queues++; msg_used_space += ipcinfo_msg[i].msg_cbytes; msg_qnum += ipcinfo_msg[i].msg_qnum; - + } free(ipcinfo_msg); ipc_submit_g("msg", "count", "queues", msg_alloc_queues);