X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdaemon%2Futils_time.c;h=86476ea63b4cd95728cfd843a48b52d26859d979;hb=6fd0d2574fc386c2724c8307d33b12529b30048b;hp=47ed6d393ba489fdf1bd9399a4c321de11b87f84;hpb=4ac3040668e7a9b595edd334a9179a5f6ae42461;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);