aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-wol.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-wol.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-wol.c')
-rw-r--r--epan/dissectors/packet-wol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-wol.c b/epan/dissectors/packet-wol.c
index 5e42e999ac..52225e51f1 100644
--- a/epan/dissectors/packet-wol.c
+++ b/epan/dissectors/packet-wol.c
@@ -97,7 +97,7 @@ dissect_wol(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
gint offset;
guint8 sync[6] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
guint8 *mac;
- guint8 *passwd;
+ const guint8 *passwd;
/* Set up structures needed to add the protocol subtree and manage it */
proto_item *ti;