From: Jim Meyering Date: Thu, 29 Jun 2000 08:30:03 +0000 (+0000) Subject: (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]: X-Git-Tag: FILEUTILS-4_0w~30 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=a1fd5e91ffc905bd36e0ff5b22d21fff649b970c;p=thirdparty%2Fcoreutils.git (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]: Avoid warning by casting result to `char *' to remove `const'. --- diff --git a/lib/mountlist.c b/lib/mountlist.c index 7d27a14a6e..4784140a14 100644 --- a/lib/mountlist.c +++ b/lib/mountlist.c @@ -260,7 +260,7 @@ static char * fsp_to_string (const struct statfs *fsp) { # if defined HAVE_F_FSTYPENAME_IN_STATFS - return fsp->f_fstypename; + return (char *) (fsp->f_fstypename); # else return fstype_to_string (fsp->f_type); # endif