summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-03-08 02:05:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:11:05 -0500
commit9e65a2cb984988d04acf879dd3fc2d3e157f20df (patch)
tree156c4ba589dc8835ac8c7e51861f6f44e690593c
parent6b35642037e17766a25b158c0c0a5f01405ec9e8 (diff)
downloadsamba-9e65a2cb984988d04acf879dd3fc2d3e157f20df.tar.gz
samba-9e65a2cb984988d04acf879dd3fc2d3e157f20df.tar.bz2
samba-9e65a2cb984988d04acf879dd3fc2d3e157f20df.zip
r14009: Remove last const warning (have to use CONST_DISCARD).
Jeremy. (This used to be commit af0ade470f2fac3509a44207b4572e279ba30e34)
-rwxr-xr-xsource3/client/mount.cifs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/client/mount.cifs.c b/source3/client/mount.cifs.c
index 2336b8b910..7801e7b222 100755
--- a/source3/client/mount.cifs.c
+++ b/source3/client/mount.cifs.c
@@ -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 @@ mount_retry:
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();