svn commit: samba r14010 - in trunk/source/client: .

jra at samba.org jra at samba.org
Wed Mar 8 02:05:41 GMT 2006


Author: jra
Date: 2006-03-08 02:05:41 +0000 (Wed, 08 Mar 2006)
New Revision: 14010

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

Log:
Remove last const warning (have to use CONST_DISCARD).
Jeremy.

Modified:
   trunk/source/client/mount.cifs.c


Changeset:
Modified: trunk/source/client/mount.cifs.c
===================================================================
--- trunk/source/client/mount.cifs.c	2006-03-08 02:05:36 UTC (rev 14009)
+++ trunk/source/client/mount.cifs.c	2006-03-08 02:05:41 UTC (rev 14010)
@@ -59,6 +59,8 @@
 #define MS_MOVE 8192 
 #endif 
 
+#define CONST_DISCARD(type, ptr)      ((type) ((void *) (ptr)))
+
 const char *thisprogram;
 int verboseflag = 0;
 static int got_password = 0;
@@ -1206,7 +1208,7 @@
 		if(pmntfile) {
 			mountent.mnt_fsname = share_name;
 			mountent.mnt_dir = mountpoint; 
-			mountent.mnt_type = "cifs"; 
+			mountent.mnt_type = CONST_DISCARD(char *,"cifs"); 
 			mountent.mnt_opts = malloc(220);
 			if(mountent.mnt_opts) {
 				char * mount_user = getusername();



More information about the samba-cvs mailing list