diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-10-30 16:17:52 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-10-30 16:17:52 +0100 |
commit | 215d42fef86577ad74151cda553a20b1bdb58a30 (patch) | |
tree | b0761ae4b63f6ad36da0763f2ffda126d9206927 /src | |
parent | 83ee97498db28cb3e092f26f1a9169fbff1b1c6e (diff) |
snprintf: fix compilation warning in 64-bits platforms
We have to cast the counters to unsigned long long to fix
a compilation warning in 64-bits platforms.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/conntrack/snprintf_xml.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conntrack/snprintf_xml.c b/src/conntrack/snprintf_xml.c index 9cd49cf..b14ff43 100644 --- a/src/conntrack/snprintf_xml.c +++ b/src/conntrack/snprintf_xml.c @@ -191,11 +191,11 @@ static int __snprintf_counters_xml(char *buf, unsigned int size = 0, offset = 0; ret = snprintf(buf, len, "<packets>%llu</packets>", - ct->counters[type].packets); + (unsigned long long)ct->counters[type].packets); BUFFER_SIZE(ret, size, len, offset); ret = snprintf(buf+offset, len, "<bytes>%llu</bytes>", - ct->counters[type].bytes); + (unsigned long long)ct->counters[type].bytes); BUFFER_SIZE(ret, size, len, offset); return size; |