summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-07-08 02:14:57 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-07-08 02:14:57 +0000
commit21b9280cf516045f3ffb7d5249087a127855a38d (patch)
tree66604f5931a8cb70a88536893488ab74a20064a8 /source3/smbd
parent363de3ca121b21a55457034648194f16fc2dc72f (diff)
downloadsamba-21b9280cf516045f3ffb7d5249087a127855a38d.tar.gz
samba-21b9280cf516045f3ffb7d5249087a127855a38d.tar.bz2
samba-21b9280cf516045f3ffb7d5249087a127855a38d.zip
Kill off const warnings - add a pile of const to various places.
(This used to be commit 1de04ec4735c19ec21cdef6e679cea17c734c5f6)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/mangle_map.c4
-rw-r--r--source3/smbd/posix_acls.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/mangle_map.c b/source3/smbd/mangle_map.c
index 71d9340718..553e3d949d 100644
--- a/source3/smbd/mangle_map.c
+++ b/source3/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=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. */
diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c
index 309dd0e719..85818d524a 100644
--- a/source3/smbd/posix_acls.c
+++ b/source3/smbd/posix_acls.c
@@ -104,7 +104,7 @@ static void print_canon_ace(canon_ace *pace, int num)
dbgtext( "canon_ace index %d. Type = %s ", num, pace->attr == ALLOW_ACE ? "allow" : "deny" );
dbgtext( "SID = %s ", sid_to_string( str, &pace->trustee));
if (pace->owner_type == UID_ACE) {
- char *u_name = uidtoname(pace->unix_ug.uid);
+ const char *u_name = uidtoname(pace->unix_ug.uid);
dbgtext( "uid %u (%s) ", (unsigned int)pace->unix_ug.uid, u_name);
} else if (pace->owner_type == GID_ACE) {
char *g_name = gidtoname(pace->unix_ug.gid);