From b2db4c51625077569ccc0fdf39471a67c3646066 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 21 Nov 2009 19:03:45 +0100 Subject: mount.cifs: Fix a const error --- client/mount.cifs.c | 4 ++-- 1 file 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(); -- cgit