svn commit: samba r14009 - in branches/SAMBA_3_0/source/client: .
jra at samba.org
jra at samba.org
Wed Mar 8 02:05:38 GMT 2006
Author: jra
Date: 2006-03-08 02:05:36 +0000 (Wed, 08 Mar 2006)
New Revision: 14009
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14009
Log:
Remove last const warning (have to use CONST_DISCARD).
Jeremy.
Modified:
branches/SAMBA_3_0/source/client/mount.cifs.c
Changeset:
Modified: branches/SAMBA_3_0/source/client/mount.cifs.c
===================================================================
--- branches/SAMBA_3_0/source/client/mount.cifs.c 2006-03-08 01:43:30 UTC (rev 14008)
+++ branches/SAMBA_3_0/source/client/mount.cifs.c 2006-03-08 02:05:36 UTC (rev 14009)
@@ -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