aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-01-01 12:29:26 +0000
committerGuy Harris <guy@alum.mit.edu>2005-01-01 12:29:26 +0000
commit87c98feed8e23baa23e53cc1954baa0df5350182 (patch)
tree314a5d97fa94d6358752b1b88925e3fc0fa3ef80 /epan
parent71217a80071adae12b53253e3025b2220e6c89f5 (diff)
"address_to_str()" and "address_to_str_buf()" don't modify the "address"
structure pointed to them by reference, so make the argument a "const" pointer. svn path=/trunk/; revision=12911
Diffstat (limited to 'epan')
-rw-r--r--epan/to_str.c4
-rw-r--r--epan/to_str.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/epan/to_str.c b/epan/to_str.c
index 1440bf90a4..050d5fa053 100644
--- a/epan/to_str.c
+++ b/epan/to_str.c
@@ -804,7 +804,7 @@ decode_numeric_bitfield(guint32 val, guint32 mask, int width,
address types */
/* convert an address struct into a printable string */
gchar*
-address_to_str(address *addr)
+address_to_str(const address *addr)
{
#ifndef INET6_ADDRSTRLEN
#define INET6_ADDRSTRLEN 46
@@ -823,7 +823,7 @@ address_to_str(address *addr)
}
void
-address_to_str_buf(address *addr, gchar *buf)
+address_to_str_buf(const address *addr, gchar *buf)
{
struct atalk_ddp_addr ddp_addr;
diff --git a/epan/to_str.h b/epan/to_str.h
index 56e1460d67..5ae35be692 100644
--- a/epan/to_str.h
+++ b/epan/to_str.h
@@ -46,8 +46,8 @@ typedef enum {
struct e_in6_addr;
-extern gchar* address_to_str(address *);
-extern void address_to_str_buf(address *, gchar *);
+extern gchar* address_to_str(const address *);
+extern void address_to_str_buf(const address *, gchar *);
extern gchar* ether_to_str(const guint8 *);
extern gchar* ip_to_str(const guint8 *);
extern void ip_to_str_buf(const guint8 *, gchar *);