From d612dab6df72f48bdc50c89206feee9b242fd439 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 5 May 2002 00:57:59 +0000 Subject: Make "tvb_ensure_length_remaining()" return a "guint" - it can't return a negative value. Use "tvb_ensure_length_remaining()" in "tcp_dissect_pdus()", rather than checking the return value of "tvb_length_remaining()" ourselves, and make various variables and parameters in it "guint" as appropriate. svn path=/trunk/; revision=5396 --- packet-tcp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packet-tcp.h') diff --git a/packet-tcp.h b/packet-tcp.h index 40d8a354e5..006b7a3559 100644 --- a/packet-tcp.h +++ b/packet-tcp.h @@ -1,6 +1,6 @@ /* packet-tcp.h * - * $Id: packet-tcp.h,v 1.10 2002/05/05 00:16:32 guy Exp $ + * $Id: packet-tcp.h,v 1.11 2002/05/05 00:57:57 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -54,7 +54,7 @@ struct tcpinfo { */ extern void tcp_dissect_pdus(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, - gboolean proto_desegment, int fixed_len, + gboolean proto_desegment, guint fixed_len, guint (*get_pdu_len)(tvbuff_t *, int), void (*dissect_pdu)(tvbuff_t *, packet_info *, proto_tree *)); -- cgit v1.2.1