X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdaemon%2Futils_time.c;h=86476ea63b4cd95728cfd843a48b52d26859d979;hb=4d370741101aeb037ae52f3529a4a0869e0dc08a;hp=47ed6d393ba489fdf1bd9399a4c321de11b87f84;hpb=6a1a62048b6d0d2ddf5c17295609d3ebf010f40b;p=collectd.git diff --git a/src/daemon/utils_time.c b/src/daemon/utils_time.c index 47ed6d39..86476ea6 100644 --- a/src/daemon/utils_time.c +++ b/src/daemon/utils_time.c @@ -25,6 +25,7 @@ **/ #include "collectd.h" + #include "utils_time.h" #include "plugin.h" #include "common.h" @@ -127,7 +128,7 @@ static int format_rfc3339 (char *buffer, size_t buffer_size, cdtime_t t, _Bool p if (localtime_r (&t_spec.tv_sec, &t_tm) == NULL) { char errbuf[1024]; - int status = errno; + status = errno; ERROR ("format_rfc3339: localtime_r failed: %s", sstrerror (status, errbuf, sizeof (errbuf))); return (status);