aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-smb-common.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-01-14 05:39:57 +0000
committerGuy Harris <guy@alum.mit.edu>2014-01-14 05:39:57 +0000
commitc6c1887a0b9a028802826243fc61e8669f28f37e (patch)
treeb24c191eccb22190962de0a766eeb9e4574d101b /epan/dissectors/packet-smb-common.c
parente1f6ad8387f43135e62caf8c21014a38985ec8a8 (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.c')
-rw-r--r--epan/dissectors/packet-smb-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-smb-common.c b/epan/dissectors/packet-smb-common.c
index 0d77f6b987..71e5e7aeda 100644
--- a/epan/dissectors/packet-smb-common.c
+++ b/epan/dissectors/packet-smb-common.c
@@ -128,7 +128,7 @@ int display_unicode_string(tvbuff_t *tvb, proto_tree *tree, int offset, int hf_i
#define MAX_UNICODE_STR_LEN 256
int dissect_ms_compressed_string(tvbuff_t *tvb, proto_tree *tree, int offset, int hf_index,
- char **data)
+ const char **data)
{
int compr_len;
const guchar *str = NULL;
@@ -138,7 +138,7 @@ int dissect_ms_compressed_string(tvbuff_t *tvb, proto_tree *tree, int offset, in
proto_tree_add_string(tree, hf_index, tvb, offset, compr_len, str);
if (data)
- *data = (char*) str;
+ *data = str;
return offset + compr_len;
}