author | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 29 Apr 2015 22:15:19 +0000 (00:15 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 29 Apr 2015 22:15:19 +0000 (00:15 +0200) | ||
commit | 4c385259da89a7d9b9f3fff23faa4b03a528252d | |
tree | 394d9f31ddd8f88607ca09bf0345d76faf0893ba | tree | snapshot |
parent | ce416835a543a520f651b7c72fcb99daad20a236 | commit | diff |
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).
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 | diff | blob | history |