summaryrefslogtreecommitdiffstats
path: root/source/smbd/mangle_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/smbd/mangle_map.c')
-rw-r--r--source/smbd/mangle_map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/smbd/mangle_map.c b/source/smbd/mangle_map.c
index 372ddc0bd49..d41a5606c5f 100644
--- a/source/smbd/mangle_map.c
+++ b/source/smbd/mangle_map.c
@@ -127,8 +127,8 @@ static char *map_filename( char *s, /* This is null terminated */
*/
static void mangled_map(char *s, const char *MangledMap)
{
- char *start=(char*)MangledMap; /* Use this to search for mappings. */
- char *end; /* Used to find the end of strings. */
+ const char *start=MangledMap; /* Use this to search for mappings. */
+ const char *end; /* Used to find the end of strings. */
char *match_string;
pstring new_string; /* Make up the result here. */
char *np; /* Points into new_string. */