From: Florian Forster Date: Sat, 6 Nov 2010 11:19:16 +0000 (+0100) Subject: zeromq plugin: Don't use the "true" and "false" macros. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=1ba3debc95d5edef4f988b89421417976f248e2e;p=collectd.git zeromq plugin: Don't use the "true" and "false" macros. --- diff --git a/src/zeromq.c b/src/zeromq.c index 70fa3064..0c8e352d 100644 --- a/src/zeromq.c +++ b/src/zeromq.c @@ -66,9 +66,9 @@ static _Bool check_receive_okay (const value_list_t *vl) /* {{{ */ /* This is a value we already sent. Don't allow it to be received again in * order to avoid looping. */ if ((status == 0) && (time_sent >= ((uint64_t) vl->time))) - return (false); + return (0); - return (true); + return (1); } /* }}} _Bool check_receive_okay */ static int network_dispatch_values (value_list_t *vl, /* {{{ */ @@ -110,7 +110,7 @@ static int network_dispatch_values (value_list_t *vl, /* {{{ */ return (-ENOMEM); } - status = meta_data_add_boolean (vl->meta, "network:received", true); + status = meta_data_add_boolean (vl->meta, "network:received", 1); if (status != 0) { ERROR ("network plugin: meta_data_add_boolean failed.");