utils_time.c: fix implicit conversion warning
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Thu, 31 May 2018 13:38:08 +0000 (15:38 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Thu, 31 May 2018 13:38:08 +0000 (15:38 +0200)
commitaa53067971c6268e62532bf17082114e4606f92b
tree6e913f1e54f441791a4493d170ed974ca4b1f186
parent5c35d13ad952c2fbcd3dfa41a77200097e2d2dc8
utils_time.c: fix implicit conversion warning

  CC       src/daemon/collectd-utils_time.o
src/daemon/utils_time.c:153:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
  if ((len = strftime(pos, size_left, "%Y-%m-%dT%H:%M:%S", t_tm)) == 0)
           ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
src/daemon/utils_time.c