aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mbtcp.c
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/dissectors/packet-mbtcp.c
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/dissectors/packet-mbtcp.c')
-rw-r--r--epan/dissectors/packet-mbtcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-mbtcp.c b/epan/dissectors/packet-mbtcp.c
index d4ba97f5f1..1ffd01f7ac 100644
--- a/epan/dissectors/packet-mbtcp.c
+++ b/epan/dissectors/packet-mbtcp.c
@@ -213,8 +213,8 @@ dissect_mbtcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
guint i;
gint packet_len, payload_start, payload_len;
const char *func_string = "";
- char *pkt_type_str = "";
- char *err_str = "";
+ const char *pkt_type_str = "";
+ const char *err_str = "";
guint32 byte_cnt, group_byte_cnt, group_word_cnt;
guint32 packet_num; /* num to uniquely identify different mbtcp
* packets in one TCP packet */