X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Flibcollectdclient%2Fnetwork_buffer.c;h=2332e3ec4dc65c23dc734bf6a93c47da8bda9ddf;hb=4e89060ceb1a14ec7f9abfe9caa6b0da7e76bd5c;hp=a0f8cfdc3cfa74ae36d9954ceb1955c993338770;hpb=4c4988b1c5d33ed70b2d6d6e5a4eae13cab9255b;p=collectd.git diff --git a/src/libcollectdclient/network_buffer.c b/src/libcollectdclient/network_buffer.c index a0f8cfdc..2332e3ec 100644 --- a/src/libcollectdclient/network_buffer.c +++ b/src/libcollectdclient/network_buffer.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include @@ -122,10 +123,10 @@ struct lcc_network_buffer_s { /* * Private functions */ -static _Bool have_gcrypt(void) /* {{{ */ +static bool have_gcrypt(void) /* {{{ */ { - static _Bool result = 0; - static _Bool need_init = 1; + static bool result; + static bool need_init = true; if (!need_init) return result; @@ -150,7 +151,7 @@ static _Bool have_gcrypt(void) /* {{{ */ #else return 0; #endif -} /* }}} _Bool have_gcrypt */ +} /* }}} bool have_gcrypt */ #ifndef HAVE_HTONLL static uint64_t htonll(uint64_t val) /* {{{ */