aboutsummaryrefslogtreecommitdiffstats
path: root/epan/to_str.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2008-06-25 09:12:35 +0000
committerGuy Harris <guy@alum.mit.edu>2008-06-25 09:12:35 +0000
commit83fc9d5e0952b79aa59f2676f73c54893c0c7a56 (patch)
tree2f52b71c5dec33e0ee6a1b48d6420269ab845ee2 /epan/to_str.h
parent044e57c91780795ada89b9a5cd50cf0f53eadfc2 (diff)
Constify a bunch of stuff, to squelch -Wwrite-strings warnings.
epan/dissectors/packet-ncp2222.inc is a bit hard to fix, so we're not ready to enable that warning by default yet. Throw in some casts to handle GLib routines that take arbitrary non-const pointers (they can later return the pointers, and some callers might want to modify or free up those pointers in cases where they're known to be writable or allocated). Use ep_tvb_memdup() rather than a combination of ep_alloc() and tvb_memcpy(). Clean up some indentation. svn path=/trunk/; revision=25601
Diffstat (limited to 'epan/to_str.h')
-rw-r--r--epan/to_str.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/to_str.h b/epan/to_str.h
index 147a944f06..48d1e3d2f4 100644
--- a/epan/to_str.h
+++ b/epan/to_str.h
@@ -57,7 +57,7 @@ extern gchar* address_to_str(const address *);
extern void address_to_str_buf(const address *addr, gchar *buf, int buf_len);
extern gchar* bytestring_to_str(const guint8 *, guint32, char);
extern gchar* ether_to_str(const guint8 *);
-extern gchar* ip_to_str(const guint8 *);
+extern const gchar* ip_to_str(const guint8 *);
extern void ip_to_str_buf(const guint8 *ad, gchar *buf, int buf_len);
extern gchar* fc_to_str(const guint8 *);
extern gchar* fcwwn_to_str (const guint8 *);