diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-11-15 10:58:51 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-11-15 10:58:51 +0000 |
commit | 4a5538085f12bd4ac0bf32742d1095bbe4ca0ab6 (patch) | |
tree | 6b901d4ee43f2ce7a163c3a3a064daec26068398 /epan/tvbuff.h | |
parent | dc1ac349f9600ff39b79a0e8fcade093f3b58cca (diff) | |
download | wireshark-4a5538085f12bd4ac0bf32742d1095bbe4ca0ab6.tar.gz wireshark-4a5538085f12bd4ac0bf32742d1095bbe4ca0ab6.tar.bz2 wireshark-4a5538085f12bd4ac0bf32742d1095bbe4ca0ab6.zip |
Get rid of NullTVB, the "compat_top_tvb" member of the "packet_info"
structure, the check for a null tvbuff pointer in "alloc_field_info()",
and the "tvb_create_from_top()" macro; they're no longer needed, as
there's no non-tvbuffified dissector code remaining.
svn path=/trunk/; revision=4205
Diffstat (limited to 'epan/tvbuff.h')
-rw-r--r-- | epan/tvbuff.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/epan/tvbuff.h b/epan/tvbuff.h index 59a8eb099e..4c9f95284a 100644 --- a/epan/tvbuff.h +++ b/epan/tvbuff.h @@ -9,7 +9,7 @@ * the data of a backing tvbuff, or can be a composite of * other tvbuffs. * - * $Id: tvbuff.h,v 1.18 2001/11/13 23:55:37 gram Exp $ + * $Id: tvbuff.h,v 1.19 2001/11/15 10:58:51 guy Exp $ * * Copyright (c) 2000 by Gilbert Ramirez <gram@alumni.rice.edu> * @@ -384,10 +384,7 @@ extern gchar *tvb_get_name(tvbuff_t *tvb); /* Sets pd and offset so that tvbuff's can be used with code * that only understands pd/offset and not tvbuffs. * This is the "compatibility" function */ +/* XXX - we need to get rid of the last uses of this */ void tvb_compat(tvbuff_t*, const guint8 **pd, int *offset); -#define tvb_create_from_top(offset) \ - tvb_new_subset(pi.compat_top_tvb, (offset), \ - pi.captured_len - (offset), pi.len - (offset)) - #endif /* __TVBUFF_H__ */ |