r11159: Added some const to fix warnings.
authorJeremy Allison <jra@samba.org>
Tue, 18 Oct 2005 18:17:45 +0000 (18:17 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:05:04 +0000 (11:05 -0500)
Jeremy.

source/lib/substitute.c
source/lib/util.c

index c6d61bce951fbe6a82036c908496789659ff3bfe..884f038e6db89f20dcd68d1b1633c1c1250d3ce3 100644 (file)
@@ -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,':');
index 30886b0dd8a30e5a2352dd7beb025f0522fbafaf..6b97491039a038c980579421069c290871ec93b1 100644 (file)
@@ -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 = "";