forked from osmocom/wireshark
"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
This commit is contained in:
parent
7a4fe9b1c3
commit
bec7c4afe5
|
@ -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>");
|
||||
|
|
Loading…
Reference in New Issue