From 83fc9d5e0952b79aa59f2676f73c54893c0c7a56 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 25 Jun 2008 09:12:35 +0000 Subject: 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 --- epan/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/stream.c') diff --git a/epan/stream.c b/epan/stream.c index 434ed23fd1..0802a36f94 100644 --- a/epan/stream.c +++ b/epan/stream.c @@ -488,7 +488,7 @@ stream_pdu_fragment_t *stream_add_frag( stream_t *stream, guint32 framenum, guin tvbuff_t *stream_process_reassembled( tvbuff_t *tvb, int offset, packet_info *pinfo, - char *name, const stream_pdu_fragment_t *frag, + const char *name, const stream_pdu_fragment_t *frag, const struct _fragment_items *fit, gboolean *update_col_infop, proto_tree *tree) { -- cgit v1.2.3