diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-04-27 01:38:19 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-04-27 01:38:19 +0000 |
commit | f3b951e3c469546c9de9e69595a1e961fbbdfb77 (patch) | |
tree | 34a58fde6c7daa2d15d35e7b672f491d16931942 /packet-icq.c | |
parent | 13427fa161dba7da10a8218eaf98247c9ad22c55 (diff) |
Make the "pktsize" argument to "dissect_icqv5Server()" an "int", as it
can either be a 16-bit unsigned) packet size, or -1.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3387 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-icq.c')
-rw-r--r-- | packet-icq.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packet-icq.c b/packet-icq.c index 64fb29f04d..b3f88ee3cd 100644 --- a/packet-icq.c +++ b/packet-icq.c @@ -1,7 +1,7 @@ /* packet-icq.c * Routines for ICQ packet disassembly * - * $Id: packet-icq.c,v 1.29 2001/04/27 01:27:37 guy Exp $ + * $Id: packet-icq.c,v 1.30 2001/04/27 01:38:19 guy Exp $ * * Ethereal - Network traffic analyzer * By Johan Feyaerts @@ -90,7 +90,7 @@ dissect_icqv5Server(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, - guint32 pktsize); + int pktsize); /* Offsets of fields in the ICQ headers */ /* Can be 0x0002 or 0x0005 */ @@ -1953,13 +1953,13 @@ dissect_icqv5Server(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, - guint32 pktsize) + int pktsize) { /* Server traffic is easy, not encrypted */ proto_tree *icq_tree = NULL; proto_tree *icq_header_tree = NULL; proto_item *ti = NULL; - int changeCol = (pktsize==(guint32)-1); + int changeCol = (pktsize==-1); guint16 cmd; @@ -1967,7 +1967,7 @@ dissect_icqv5Server(tvbuff_t *tvb, if (changeCol && check_col(pinfo->fd, COL_INFO)) col_add_fstr(pinfo->fd, COL_INFO, "ICQv5 %s", findServerCmd(cmd)); - if (pktsize == (guint32)-1) + if (pktsize == -1) pktsize = tvb_reported_length(tvb); if (tree) { @@ -2123,7 +2123,7 @@ static void dissect_icqv5(tvbuff_t *tvb, if (unknown == 0x0L) { dissect_icqv5Client(tvb, pinfo, tree); } else { - dissect_icqv5Server(tvb, 0, pinfo, tree, (guint32) -1); + dissect_icqv5Server(tvb, 0, pinfo, tree, -1); } } |