aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/plugins/stroke/stroke_list.c
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2009-08-07 08:47:07 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2009-08-07 08:47:29 +0200
commit4a02deb08881b620a88f6ffb8398423becd83d0c (patch)
tree47f91d488d48650717b94fe1c3c1f58caf18acde /src/charon/plugins/stroke/stroke_list.c
parent99dd42918e53426174795e2950c7b5fffe42e07b (diff)
downloadstrongswan-4a02deb08881b620a88f6ffb8398423becd83d0c.tar.bz2
strongswan-4a02deb08881b620a88f6ffb8398423becd83d0c.tar.xz
printing u_int64_t caused segfault on 32-bit platforms
Diffstat (limited to 'src/charon/plugins/stroke/stroke_list.c')
-rw-r--r--src/charon/plugins/stroke/stroke_list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/charon/plugins/stroke/stroke_list.c b/src/charon/plugins/stroke/stroke_list.c
index 795e1ed7f..7aa80dcd2 100644
--- a/src/charon/plugins/stroke/stroke_list.c
+++ b/src/charon/plugins/stroke/stroke_list.c
@@ -207,14 +207,14 @@ static void log_child_sa(FILE *out, child_sa_t *child_sa, bool all)
}
child_sa->get_usestats(child_sa, TRUE, &use_in, &bytes_in);
- fprintf(out, ", %lu bytes_i", bytes_in);
+ fprintf(out, ", %u bytes_i", (u_int)bytes_in);
if (use_in)
{
fprintf(out, " (%ds ago)", now - use_in);
}
child_sa->get_usestats(child_sa, FALSE, &use_out, &bytes_out);
- fprintf(out, ", %lu bytes_o", bytes_out);
+ fprintf(out, ", %u bytes_o", (u_int)bytes_out);
if (use_out)
{
fprintf(out, " (%ds ago)", now - use_out);