Code

write_sensu: fix format-string portability problem
authorMarc Fournier <marc.fournier@camptocamp.com>
Wed, 29 Apr 2015 22:15:19 +0000 (00:15 +0200)
committerMarc Fournier <marc.fournier@camptocamp.com>
Wed, 29 Apr 2015 22:15:19 +0000 (00:15 +0200)
commit4c385259da89a7d9b9f3fff23faa4b03a528252d
tree394d9f31ddd8f88607ca09bf0345d76faf0893ba
parentce416835a543a520f651b7c72fcb99daad20a236
write_sensu: fix format-string portability problem

Casting counters, derives and abolutes to int64_t was incorrect, as they
are respectively `unsigned long long`, `int64_t` and `uint64_t`.
Apart from potentially loosing precision, the `%ld` format-string made
clang choke on the 32bit architecture (follow-up to 78340212).
src/write_sensu.c