diff options
-rw-r--r-- | client/mount.cifs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/mount.cifs.c b/client/mount.cifs.c index a9c1827917..459a9f34a9 100644 --- a/client/mount.cifs.c +++ b/client/mount.cifs.c @@ -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(); |