1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r11159: Added some const to fix warnings.

Jeremy.
(This used to be commit de27b0eef2)
This commit is contained in:
Jeremy Allison 2005-10-18 18:17:45 +00:00 committed by Gerald (Jerry) Carter
parent eed2549082
commit bb9e7dd104
2 changed files with 4 additions and 4 deletions

View 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,':');

View 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 = "";