diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-01-10 23:42:12 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-01-10 23:42:12 +0000 |
commit | d3c571bf5aad7000ed4c652db9bbd127619a8682 (patch) | |
tree | 30b10cafe13bbf49be9e157a4467e6fa3f244613 /packet-ldap.c | |
parent | 8df3d51db4f14d1b7abea5ed2bbea5af7e7dc978 (diff) | |
download | wireshark-d3c571bf5aad7000ed4c652db9bbd127619a8682.tar.gz wireshark-d3c571bf5aad7000ed4c652db9bbd127619a8682.tar.bz2 wireshark-d3c571bf5aad7000ed4c652db9bbd127619a8682.zip |
The difference between two pointers doesn't necessarily fit in an "int"
or "unsigned int"; cast it to "unsigned long" and print it with "%lu",
so it works on ILP32 and LP64 platforms.
svn path=/trunk/; revision=2867
Diffstat (limited to 'packet-ldap.c')
-rw-r--r-- | packet-ldap.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packet-ldap.c b/packet-ldap.c index 04f13df78a..dde6397687 100644 --- a/packet-ldap.c +++ b/packet-ldap.c @@ -1,7 +1,7 @@ /* packet-ldap.c * Routines for ldap packet dissection * - * $Id: packet-ldap.c,v 1.21 2001/01/09 06:31:38 guy Exp $ + * $Id: packet-ldap.c,v 1.22 2001/01/10 23:42:12 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -907,8 +907,9 @@ dissect_ldap(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) if (messageLength > (a.end - a.pointer)) { if (ldap_tree) - proto_tree_add_text(ldap_tree, NullTVB, message_start, END_OF_FRAME, "Short message! (expected: %u, actual: %u)", - messageLength, a.end - a.pointer); + proto_tree_add_text(ldap_tree, NullTVB, message_start, END_OF_FRAME, + "Short message! (expected: %u, actual: %lu)", + messageLength, (unsigned long)(a.end - a.pointer)); break; } |