svn commit: samba r11159 - in branches/SAMBA_3_0/source/lib: .

jra at samba.org jra at samba.org
Tue Oct 18 18:17:46 GMT 2005


Author: jra
Date: 2005-10-18 18:17:45 +0000 (Tue, 18 Oct 2005)
New Revision: 11159

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11159

Log:
Added some const to fix warnings.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/lib/substitute.c
   branches/SAMBA_3_0/source/lib/util.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/substitute.c
===================================================================
--- branches/SAMBA_3_0/source/lib/substitute.c	2005-10-18 18:12:42 UTC (rev 11158)
+++ branches/SAMBA_3_0/source/lib/substitute.c	2005-10-18 18:17:45 UTC (rev 11159)
@@ -280,8 +280,8 @@
 #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,':');

Modified: branches/SAMBA_3_0/source/lib/util.c
===================================================================
--- branches/SAMBA_3_0/source/lib/util.c	2005-10-18 18:12:42 UTC (rev 11158)
+++ branches/SAMBA_3_0/source/lib/util.c	2005-10-18 18:17:45 UTC (rev 11159)
@@ -1288,7 +1288,7 @@
 *******************************************************************/
 
 #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 @@
 }
 #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 = "";



More information about the samba-cvs mailing list