X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdaemon%2Futils_time.c;h=4637122eb05dd63bcab530407e863e4df7cd641c;hb=7c9d772c992647fcba64a96800c146eb9f1647f8;hp=a807c7f948ce6ea55d8df9aec95b1459515c3730;hpb=ca6d2f62d82ba4d07d6f266e3abbe1c0230d2f5a;p=collectd.git diff --git a/src/daemon/utils_time.c b/src/daemon/utils_time.c index a807c7f9..4637122e 100644 --- a/src/daemon/utils_time.c +++ b/src/daemon/utils_time.c @@ -144,9 +144,9 @@ static int format_zone(char *buffer, size_t buffer_size, } /* }}} int format_zone */ int format_rfc3339(char *buffer, size_t buffer_size, struct tm const *t_tm, - long nsec, _Bool print_nano, char const *zone) /* {{{ */ + long nsec, bool print_nano, char const *zone) /* {{{ */ { - int len; + size_t len; char *pos = buffer; size_t size_left = buffer_size; @@ -167,7 +167,7 @@ int format_rfc3339(char *buffer, size_t buffer_size, struct tm const *t_tm, } /* }}} int format_rfc3339 */ int format_rfc3339_utc(char *buffer, size_t buffer_size, cdtime_t t, - _Bool print_nano) /* {{{ */ + bool print_nano) /* {{{ */ { struct tm t_tm; long nsec = 0; @@ -181,7 +181,7 @@ int format_rfc3339_utc(char *buffer, size_t buffer_size, cdtime_t t, } /* }}} int format_rfc3339_utc */ int format_rfc3339_local(char *buffer, size_t buffer_size, cdtime_t t, - _Bool print_nano) /* {{{ */ + bool print_nano) /* {{{ */ { struct tm t_tm; long nsec = 0;