From 5664e5887f4da905f94035556eb232611796cee2 Mon Sep 17 00:00:00 2001 From: Gilbert Ramirez Date: Tue, 13 Mar 2001 21:34:28 +0000 Subject: Make tvb_get_ptr() return 'const guint8*', and clean up all the usages of tvb_get_ptr(). packet-ieee80211.c still has one bad usage, in which it *does* modify the tvbuff's data. svn path=/trunk/; revision=3128 --- packet-sna.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packet-sna.c') diff --git a/packet-sna.c b/packet-sna.c index b36f0e9664..5aa5ea8926 100644 --- a/packet-sna.c +++ b/packet-sna.c @@ -2,7 +2,7 @@ * Routines for SNA * Gilbert Ramirez * - * $Id: packet-sna.c,v 1.25 2001/01/25 06:14:14 guy Exp $ + * $Id: packet-sna.c,v 1.26 2001/03/13 21:34:24 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -416,7 +416,7 @@ dissect_fid0_1(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_tree *bf_tree; proto_item *bf_item; guint8 th_0; - guint8 *ptr; + const guint8 *ptr; const int bytes_in_header = 10; @@ -471,7 +471,7 @@ dissect_fid2(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_tree *bf_tree; proto_item *bf_item; guint8 th_0=0, daf=0, oaf=0; - guint8 *ptr; + const guint8 *ptr; const int bytes_in_header = 6; -- cgit v1.2.3