mount.cifs: Fix a const error
authorVolker Lendecke <vl@samba.org>
Sat, 21 Nov 2009 18:03:45 +0000 (19:03 +0100)
committerVolker Lendecke <vl@samba.org>
Sat, 21 Nov 2009 19:49:16 +0000 (20:49 +0100)
client/mount.cifs.c

index a9c18279178d6092a7b70598572e66a7c4b55dba..459a9f34a95281195150fd2acfbeb83b85095142 100644 (file)
@@ -121,7 +121,7 @@ static char * user_name = NULL;
 static char * mountpassword = NULL;
 char * domain_name = NULL;
 char * prefixpath = NULL;
-char *cifs_fstype = "cifs";
+const char *cifs_fstype = "cifs";
 
 /* glibc doesn't have strlcpy, strlcat. Ensure we do. JRA. We
  * don't link to libreplace so need them here. */
@@ -1637,7 +1637,7 @@ mount_retry:
        }
        mountent.mnt_fsname = dev_name;
        mountent.mnt_dir = mountpoint;
-       mountent.mnt_type = cifs_fstype;
+       mountent.mnt_type = (char *)(void *)cifs_fstype;
        mountent.mnt_opts = (char *)malloc(220);
        if(mountent.mnt_opts) {
                char * mount_user = getusername();