From 9e65a2cb984988d04acf879dd3fc2d3e157f20df Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 8 Mar 2006 02:05:36 +0000 Subject: r14009: Remove last const warning (have to use CONST_DISCARD). Jeremy. (This used to be commit af0ade470f2fac3509a44207b4572e279ba30e34) --- source3/client/mount.cifs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/client/mount.cifs.c') 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(); -- cgit