From 0abda39c906b53494ba5a0dd1c83c93e4b2a6b36 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 28 Nov 2002 03:54:50 +0000 Subject: Make "ip6_to_str()" take a const pointer as an argument. svn path=/trunk/; revision=6687 --- epan/to_str.c | 6 +++--- epan/to_str.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'epan') diff --git a/epan/to_str.c b/epan/to_str.c index 61b414c259..c8b8f83224 100644 --- a/epan/to_str.c +++ b/epan/to_str.c @@ -1,7 +1,7 @@ /* to_str.c * Routines for utilities to convert various other types to strings. * - * $Id: to_str.c,v 1.18 2002/10/29 00:28:11 guy Exp $ + * $Id: to_str.c,v 1.19 2002/11/28 03:54:50 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -163,13 +163,13 @@ ip_to_str_buf(const guint8 *ad, gchar *buf) } gchar * -ip6_to_str(struct e_in6_addr *ad) { +ip6_to_str(const struct e_in6_addr *ad) { #ifndef INET6_ADDRSTRLEN #define INET6_ADDRSTRLEN 46 #endif static gchar buf[INET6_ADDRSTRLEN]; - inet_ntop(AF_INET6, (guchar*)ad, (gchar*)buf, sizeof(buf)); + inet_ntop(AF_INET6, (const guchar*)ad, (gchar*)buf, sizeof(buf)); return buf; } diff --git a/epan/to_str.h b/epan/to_str.h index f9f65cddff..2d6668fade 100644 --- a/epan/to_str.h +++ b/epan/to_str.h @@ -1,7 +1,7 @@ /* to_str.h * Definitions for utilities to convert various other types to strings. * - * $Id: to_str.h,v 1.8 2002/08/28 20:40:45 jmayer Exp $ + * $Id: to_str.h,v 1.9 2002/11/28 03:54:50 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -48,7 +48,7 @@ extern gchar* ether_to_str_punct(const guint8 *, char); extern gchar* ip_to_str(const guint8 *); extern void ip_to_str_buf(const guint8 *, gchar *); struct e_in6_addr; -extern char* ip6_to_str(struct e_in6_addr *); +extern char* ip6_to_str(const struct e_in6_addr *); extern gchar* ipx_addr_to_str(guint32, const guint8 *); extern gchar* ipxnet_to_string(const guint8 *ad); extern gchar* ipxnet_to_str_punct(const guint32 ad, char punct); -- cgit v1.2.3