From b67492bbc0db4f1ea6f4376846d3fca08773660b Mon Sep 17 00:00:00 2001 From: Jakub Zawadzki Date: Sun, 4 Aug 2013 22:02:42 +0000 Subject: Cleanup tvb - make tvb_ops->tvb_size a gsize field, not function call - remove not needed forward declaration / forward line svn path=/trunk/; revision=51141 --- frame_tvbuff.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'frame_tvbuff.c') diff --git a/frame_tvbuff.c b/frame_tvbuff.c index 27db55765e..b6d4545113 100644 --- a/frame_tvbuff.c +++ b/frame_tvbuff.c @@ -143,12 +143,6 @@ frame_pbrk_guint8(tvbuff_t *tvb, guint abs_offset, guint limit, const guint8 *ne return tvb_pbrk_guint8(tvb, abs_offset, limit, needles, found_needle); } -static gsize -frame_sizeof(void) -{ - return sizeof(struct tvb_frame); -} - static guint frame_offset(const tvbuff_t *tvb _U_, const guint counter) { @@ -159,7 +153,8 @@ frame_offset(const tvbuff_t *tvb _U_, const guint counter) static tvbuff_t *frame_clone(tvbuff_t *tvb, guint abs_offset, guint abs_length); static const struct tvb_ops tvb_frame_ops = { - frame_sizeof, /* size */ + sizeof(struct tvb_frame), /* size */ + frame_free, /* free */ frame_offset, /* offset */ frame_get_ptr, /* get_ptr */ -- cgit v1.2.1