diff options
author | Eric Leblond <eric@regit.org> | 2013-02-17 22:59:40 +0100 |
---|---|---|
committer | Eric Leblond <eric@regit.org> | 2013-02-17 23:04:15 +0100 |
commit | 39c719c54d64e1c5a04cd9d4be11cee54e91af57 (patch) | |
tree | a48d146a6a64a87e46374d4808b4fb66d8621f1d | |
parent | a1d521071288e1187965331f6ad7ee220b560652 (diff) |
graphite: fix crash on i386
It seems a cast of time_t is needed for i386 system to avoid a
crash. I've added a cast to uint64_t that should be ok on all
Linux system.
Reported-by: netfilter@openenterprise.co.uk
-rw-r--r-- | output/ulogd_output_GRAPHITE.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/output/ulogd_output_GRAPHITE.c b/output/ulogd_output_GRAPHITE.c index a4b31a5..5328f8e 100644 --- a/output/ulogd_output_GRAPHITE.c +++ b/output/ulogd_output_GRAPHITE.c @@ -164,11 +164,11 @@ static int _output_graphite(struct ulogd_pluginstance *upi) prefix_ce(upi->config_kset).u.string, (char *)ikey_get_ptr(&inp[KEY_SUM_NAME]), ikey_get_u64(&inp[KEY_SUM_PKTS]), - now, + (uint64_t) now, prefix_ce(upi->config_kset).u.string, (char *)ikey_get_ptr(&inp[KEY_SUM_NAME]), ikey_get_u64(&inp[KEY_SUM_BYTES]), - now + (uint64_t) now ); if (msg_size == -1) { ulogd_log(ULOGD_ERROR, "Could not create message\n"); |