X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fapcups.c;h=622e3a10b37c8dfbd9240842401cdd68f65e4c09;hb=4e89060ceb1a14ec7f9abfe9caa6b0da7e76bd5c;hp=262fa42432db9a84663d3c5da99b7e08289eeeac;hpb=ca6d2f62d82ba4d07d6f266e3abbe1c0230d2f5a;p=collectd.git diff --git a/src/apcups.c b/src/apcups.c index 262fa424..622e3a10 100644 --- a/src/apcups.c +++ b/src/apcups.c @@ -73,8 +73,8 @@ typedef struct { static char *conf_node = NULL; static char *conf_service = NULL; /* Defaults to false for backwards compatibility. */ -static _Bool conf_report_seconds = 0; -static _Bool conf_persistent_conn = 1; +static bool conf_report_seconds; +static bool conf_persistent_conn = true; static int global_sockfd = -1; @@ -347,7 +347,7 @@ static int apc_query_server(char const *node, char const *service, } static int apcups_config(oconfig_item_t *ci) { - _Bool persistent_conn_set = 0; + bool persistent_conn_set = 0; for (int i = 0; i < ci->children_num; i++) { oconfig_item_t *child = ci->children + i;