aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-11-28 03:54:50 +0000
committerGuy Harris <guy@alum.mit.edu>2002-11-28 03:54:50 +0000
commit0abda39c906b53494ba5a0dd1c83c93e4b2a6b36 (patch)
treefd7dcc65696ef3cadd8cc6cd6cd8ef1897c44332 /epan
parent0051e3c2e846c01c790d162af7fa2609add65fab (diff)
Make "ip6_to_str()" take a const pointer as an argument.
svn path=/trunk/; revision=6687
Diffstat (limited to 'epan')
-rw-r--r--epan/to_str.c6
-rw-r--r--epan/to_str.h4
2 files changed, 5 insertions, 5 deletions
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 <gerald@ethereal.com>
@@ -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 <gerald@ethereal.com>
@@ -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);