summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-11-21 19:03:45 +0100
committerVolker Lendecke <vl@samba.org>2009-11-21 20:49:16 +0100
commitb2db4c51625077569ccc0fdf39471a67c3646066 (patch)
tree6a654f03db2471b911bd0ed06e88b6e4e8ec0206
parentb79bcd972cd028a494603f7254d3a266904be2d1 (diff)
downloadsamba-b2db4c51625077569ccc0fdf39471a67c3646066.tar.gz
samba-b2db4c51625077569ccc0fdf39471a67c3646066.tar.bz2
samba-b2db4c51625077569ccc0fdf39471a67c3646066.zip
mount.cifs: Fix a const error
-rw-r--r--client/mount.cifs.c4
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();