summaryrefslogtreecommitdiff
path: root/packet-icq.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-04-27 01:38:19 +0000
committerGuy Harris <guy@alum.mit.edu>2001-04-27 01:38:19 +0000
commit112bd7c6a7974607227449206f6f88d399076427 (patch)
tree34a58fde6c7daa2d15d35e7b672f491d16931942 /packet-icq.c
parentc3271d0a764079e1cd6243b06ced97194d207308 (diff)
downloadwireshark-112bd7c6a7974607227449206f6f88d399076427.tar.gz
Make the "pktsize" argument to "dissect_icqv5Server()" an "int", as it
can either be a 16-bit unsigned) packet size, or -1. svn path=/trunk/; revision=3387
Diffstat (limited to 'packet-icq.c')
-rw-r--r--packet-icq.c12
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);
}
}