mount.cifs: get rid of CONST_DISCARD
authorJeff Layton <jlayton@redhat.com>
Wed, 11 Nov 2009 19:04:54 +0000 (14:04 -0500)
committerJeff Layton <jlayton@redhat.com>
Wed, 11 Nov 2009 19:04:54 +0000 (14:04 -0500)
commitb11e11a9737a6490f27f9ea5c15b39203fbcbe7a
tree9e715e39cd8e861279f6dcf005420b23b5bcbd99
parentf3646ff392ab736ed82d2982490aa9d57e11ec6b
mount.cifs: get rid of CONST_DISCARD

Apparently, we need to strip the "const" attribute off of the mnt_fstype
before passing it to addmntent to prevent a (somewhat bogus) compiler
warning.

Rather than just stripping off the "const" attribute, clarify the code
by declaring a new non-const char pointer that points to the same
string. We can also use that same pointer in the mount(2) call too.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Acked-by: Matthias Dieter Wallnöfer <mdw@samba.org>
client/mount.cifs.c