aboutsummaryrefslogtreecommitdiffstats
path: root/packet-tr.c
diff options
context:
space:
mode:
authorgram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>2001-03-13 21:34:28 +0000
committergram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>2001-03-13 21:34:28 +0000
commitc3d4b76f3576cb73fdb23fc3921948c5a3375c08 (patch)
treed7075be8e004cc316e2e87d695012482960173ae /packet-tr.c
parentd0da3fd014e054d71ac079fffbf1f04e3de89f53 (diff)
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3128 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-tr.c')
-rw-r--r--packet-tr.c6
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);