X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdaemon%2Futils_time.c;h=5dd7d0e182ca045d6e30fa472b6b6f423136e278;hb=c4439c9cb3e2348ad7013644731de27a55eca478;hp=a807c7f948ce6ea55d8df9aec95b1459515c3730;hpb=072244d2e10336241610a1a0448a8149e9c77e7e;p=collectd.git diff --git a/src/daemon/utils_time.c b/src/daemon/utils_time.c index a807c7f9..5dd7d0e1 100644 --- a/src/daemon/utils_time.c +++ b/src/daemon/utils_time.c @@ -26,8 +26,8 @@ #include "collectd.h" -#include "common.h" #include "plugin.h" +#include "utils/common/common.h" #include "utils_time.h" #ifndef DEFAULT_MOCK_TIME @@ -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;