From e1c0d7eae48d3a806bbae72037bebaf9c58fcf54 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 5 Aug 2003 17:12:07 +0000 Subject: [PATCH] From Lars Roland: get rid of "ip_to_str()", as it's just a copy of the standard one in the Ethereal core, so that the plugin compiles on Windows. svn path=/trunk/; revision=8137 --- plugins/lwres/packet-lwres.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/plugins/lwres/packet-lwres.c b/plugins/lwres/packet-lwres.c index 7e76759c11..926614f266 100644 --- a/plugins/lwres/packet-lwres.c +++ b/plugins/lwres/packet-lwres.c @@ -1,7 +1,7 @@ /* packet-lwres.c * Routines for light weight reslover (lwres, part of BIND9) packet disassembly * - * $Id: packet-lwres.c,v 1.1 2003/08/05 05:03:30 guy Exp $ + * $Id: packet-lwres.c,v 1.2 2003/08/05 17:12:07 guy Exp $ * * Copyright (c) 2003 by Oleg Terletsky * @@ -244,24 +244,6 @@ ip_to_str_buf(const guint8 *ad, gchar *buf) *p = '\0'; } -gchar * -ip_to_str(const guint8 *ad) { - static gchar str[4][16]; - static gchar *cur; - - if (cur == &str[0][0]) { - cur = &str[1][0]; - } else if (cur == &str[1][0]) { - cur = &str[2][0]; - } else if (cur == &str[2][0]) { - cur = &str[3][0]; - } else { - cur = &str[0][0]; - } - ip_to_str_buf(ad, cur); - return cur; -} - int get_dns_name(tvbuff_t *tvb, int offset, int dns_data_offset,