aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-cdp.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2008-06-25 09:12:35 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2008-06-25 09:12:35 +0000
commite0197aac9561f0908a3d2fb5a9e30f58514a6c4c (patch)
tree2f52b71c5dec33e0ee6a1b48d6420269ab845ee2 /epan/dissectors/packet-cdp.c
parentf698dd9c5ee1a592d8acbea2c48986817474bb9c (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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25601 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-cdp.c')
-rw-r--r--epan/dissectors/packet-cdp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-cdp.c b/epan/dissectors/packet-cdp.c
index 03585a0912..e0bd6ccd77 100644
--- a/epan/dissectors/packet-cdp.c
+++ b/epan/dissectors/packet-cdp.c
@@ -898,7 +898,7 @@ dissect_address_tlv(tvbuff_t *tvb, int offset, int length, proto_tree *tree)
const char *protocol_str;
guint16 address_length;
const char *address_type_str;
- char *address_str;
+ const char *address_str;
if (length < 1)
return -1;