summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-10-18 18:17:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:04 -0500
commitbb9e7dd1043d22104281c21e11364835c8b8e947 (patch)
tree4414ef052997e073fcb51e2bcd7d663c5c987293
parenteed25490827ab791df725a78d217d5ffc95c8b83 (diff)
downloadsamba-bb9e7dd1043d22104281c21e11364835c8b8e947.tar.gz
samba-bb9e7dd1043d22104281c21e11364835c8b8e947.tar.bz2
samba-bb9e7dd1043d22104281c21e11364835c8b8e947.zip
r11159: Added some const to fix warnings.
Jeremy. (This used to be commit de27b0eef2eb021f28e8bf300c4dd524e30fc7ed)
-rw-r--r--source3/lib/substitute.c4
-rw-r--r--source3/lib/util.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/substitute.c b/source3/lib/substitute.c
index c6d61bce95..884f038e6d 100644
--- a/source3/lib/substitute.c
+++ b/source3/lib/substitute.c
@@ -280,8 +280,8 @@ static char *automount_path(const char *user_name)
#if (defined(HAVE_NETGROUP) && defined (WITH_AUTOMOUNT))
if (lp_nis_home_map()) {
- char *home_path_start;
- char *automount_value = automount_lookup(user_name);
+ const char *home_path_start;
+ const char *automount_value = automount_lookup(user_name);
if(strlen(automount_value) > 0) {
home_path_start = strchr_m(automount_value,':');
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 30886b0dd8..6b97491039 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -1288,7 +1288,7 @@ static void strip_mount_options( pstring *str)
*******************************************************************/
#ifdef WITH_NISPLUS_HOME
-char *automount_lookup( char *user_name)
+char *automount_lookup(const char *user_name)
{
static fstring last_key = "";
static pstring last_value = "";
@@ -1331,7 +1331,7 @@ char *automount_lookup( char *user_name)
}
#else /* WITH_NISPLUS_HOME */
-char *automount_lookup( char *user_name)
+char *automount_lookup(const char *user_name)
{
static fstring last_key = "";
static pstring last_value = "";