diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2001-03-13 21:34:28 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2001-03-13 21:34:28 +0000 |
commit | 5664e5887f4da905f94035556eb232611796cee2 (patch) | |
tree | d7075be8e004cc316e2e87d695012482960173ae /packet-tr.c | |
parent | d820905672fc2bbac7c609c1628e22dcbb3e2827 (diff) | |
download | wireshark-5664e5887f4da905f94035556eb232611796cee2.tar.gz wireshark-5664e5887f4da905f94035556eb232611796cee2.tar.bz2 wireshark-5664e5887f4da905f94035556eb232611796cee2.zip |
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
Diffstat (limited to 'packet-tr.c')
-rw-r--r-- | packet-tr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-tr.c b/packet-tr.c index 8486c2b3f7..de256211c2 100644 --- a/packet-tr.c +++ b/packet-tr.c @@ -2,7 +2,7 @@ * Routines for Token-Ring packet disassembly * Gilbert Ramirez <gram@xiexie.org> * - * $Id: packet-tr.c,v 1.60 2001/02/23 17:19:52 gram Exp $ + * $Id: packet-tr.c,v 1.61 2001/03/13 21:34:24 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -141,8 +141,8 @@ static dissector_handle_t llc_handle; */ int check_for_old_linux_tvb(tvbuff_t *tvb) { - guint8 *data; - int x, bytes; + const guint8 *data; + int x, bytes; /* Restrict our looping to the boundaries of the frame */ bytes = tvb_length(tvb); |