(fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
authorJim Meyering <jim@meyering.net>
Thu, 29 Jun 2000 08:30:03 +0000 (08:30 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 29 Jun 2000 08:30:03 +0000 (08:30 +0000)
Avoid warning by casting result to `char *' to remove `const'.

lib/mountlist.c

index 7d27a14..4784140 100644 (file)
@@ -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