X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fipc.c;h=00b3a5f8657a0e8d32ab76a41acbd43502368eb0;hb=edd9af8a874ebc9f2a7f02846807229a648917db;hp=b4038472efb76e4ff48df62e95b91307a8ff2dfc;hpb=b4cc5c7399adf79198aea816d44a42df25431d15;p=collectd.git diff --git a/src/ipc.c b/src/ipc.c index b4038472..00b3a5f8 100644 --- a/src/ipc.c +++ b/src/ipc.c @@ -213,7 +213,7 @@ static caddr_t ipc_get_info (cid_t cid, int cmd, int version, int stsize, int *n *nmemb = size / stsize; - buff = (caddr_t)malloc (size); + buff = malloc (size); if (buff == NULL) { ERROR ("ipc plugin: ipc_get_info malloc failed."); return (NULL); @@ -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);