diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-07-06 06:10:31 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-07-06 06:10:31 +0000 |
commit | bec7c4afe520dde06fdf82050ec9ac058f7335bd (patch) | |
tree | 4b838a9faad77d791addfc2649635546d3a24567 /packet-isakmp.c | |
parent | 7a4fe9b1c382cc425836b54b2bb0cfaf434666cd (diff) |
"pntohl()" doesn't actually return a "long" (or an "unsigned long"), it
returns a "guint32", which is an "unsigned int" on all platforms Glib
supports, so print what it returns with "%u", not "%lu".
svn path=/trunk/; revision=339
Diffstat (limited to 'packet-isakmp.c')
-rw-r--r-- | packet-isakmp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-isakmp.c b/packet-isakmp.c index ca35793b7e..3db149a2d0 100644 --- a/packet-isakmp.c +++ b/packet-isakmp.c @@ -2,7 +2,7 @@ * Routines for the Internet Security Association and Key Management Protocol (ISAKMP) * Brad Robel-Forrest <brad.robel-forrest@watchguard.com> * - * $Id: packet-isakmp.c,v 1.2 1999/06/12 09:02:12 guy Exp $ + * $Id: packet-isakmp.c,v 1.3 1999/07/06 06:10:31 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@unicom.net> @@ -1035,10 +1035,10 @@ num2str(const guint8 *pd, guint16 len) { snprintf(numstr, NUMSTR_LEN, "%u", pntohs(pd)); break; case 3: - snprintf(numstr, NUMSTR_LEN, "%lu", pntohl(pd) & 0x0fff); + snprintf(numstr, NUMSTR_LEN, "%u", pntohl(pd) & 0x0fff); break; case 4: - snprintf(numstr, NUMSTR_LEN, "%lu", pntohl(pd)); + snprintf(numstr, NUMSTR_LEN, "%u", pntohl(pd)); break; default: snprintf(numstr, NUMSTR_LEN, "<too big>"); |