From 0f59bc7c4521cc6139dfe44d9775d06d99b8a583 Mon Sep 17 00:00:00 2001 From: Jeff Morriss Date: Fri, 11 Feb 2011 03:13:24 +0000 Subject: Rename vines_to_str() to tvb_vines_to_str() and make it take a pointer a TVB and an offset instead of (generally) a pointer into a TVB. Move most of the contents of packet-vines.h into packet-vines.c: the moved content is only needed in that file. svn path=/trunk/; revision=35912 --- epan/address_to_str.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan/address_to_str.c') diff --git a/epan/address_to_str.c b/epan/address_to_str.c index 0ffc6ab7b2..e65aa0e220 100644 --- a/epan/address_to_str.c +++ b/epan/address_to_str.c @@ -203,13 +203,13 @@ vines_addr_to_str_buf(const guint8 *addrp, gchar *buf, int buf_len) } gchar * -vines_addr_to_str(const guint8 *addrp) +tvb_vines_addr_to_str(tvbuff_t *tvb, const gint offset) { gchar *buf; buf=ep_alloc(214); /* XXX, 14 here? */ - vines_addr_to_str_buf(addrp, buf, 214); + vines_addr_to_str_buf(tvb_get_ptr(tvb, offset, VINES_ADDR_LEN), buf, 214); return buf; } -- cgit v1.2.3