diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-01-14 05:39:57 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-01-14 05:39:57 +0000 |
commit | c6c1887a0b9a028802826243fc61e8669f28f37e (patch) | |
tree | b24c191eccb22190962de0a766eeb9e4574d101b /epan/dissectors/packet-smb-common.h | |
parent | e1f6ad8387f43135e62caf8c21014a38985ec8a8 (diff) |
Have ip6_to_str() and tvb_ip6_to_str() return const pointers, as the
ip_to_str equivalents do.
Don't cast away constness, and don't make it necessary to do so.
svn path=/trunk/; revision=54767
Diffstat (limited to 'epan/dissectors/packet-smb-common.h')
-rw-r--r-- | epan/dissectors/packet-smb-common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-smb-common.h b/epan/dissectors/packet-smb-common.h index b49a647f61..216457b3dc 100644 --- a/epan/dissectors/packet-smb-common.h +++ b/epan/dissectors/packet-smb-common.h @@ -37,7 +37,7 @@ int display_unicode_string(tvbuff_t *tvb, proto_tree *tree, int offset, int hf_i int display_ms_string(tvbuff_t *tvb, proto_tree *tree, int offset, int hf_index, char **data); int dissect_ms_compressed_string(tvbuff_t *tvb, proto_tree *tree, int offset, int hf_index, - char **data); + const char **data); const gchar *get_unicode_or_ascii_string(tvbuff_t *tvb, int *offsetp, gboolean useunicode, int *len, gboolean nopad, gboolean exactlen, |