diff options
author | Guy Harris <guy@alum.mit.edu> | 2008-06-25 09:12:35 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2008-06-25 09:12:35 +0000 |
commit | 83fc9d5e0952b79aa59f2676f73c54893c0c7a56 (patch) | |
tree | 2f52b71c5dec33e0ee6a1b48d6420269ab845ee2 /epan/stream.h | |
parent | 044e57c91780795ada89b9a5cd50cf0f53eadfc2 (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/stream.h')
-rw-r--r-- | epan/stream.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/stream.h b/epan/stream.h index 2b4c33744a..aeb18e4cc1 100644 --- a/epan/stream.h +++ b/epan/stream.h @@ -123,7 +123,7 @@ extern struct _fragment_data *stream_get_frag_data( const stream_pdu_fragment_t */ extern 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); |