summaryrefslogtreecommitdiff
path: root/lib/mountlist.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-06-29 08:30:03 +0000
committerJim Meyering <jim@meyering.net>2000-06-29 08:30:03 +0000
commita1fd5e91ffc905bd36e0ff5b22d21fff649b970c (patch)
tree988dbec1f2c6e63aa2d44e17f3b2fab44a33f99a /lib/mountlist.c
parent69b3d52b2a57a50757b0a782844e5d9eb95c69c1 (diff)
downloadcoreutils-a1fd5e91ffc905bd36e0ff5b22d21fff649b970c.tar.xz
(fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
Avoid warning by casting result to `char *' to remove `const'.
Diffstat (limited to 'lib/mountlist.c')
-rw-r--r--lib/mountlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mountlist.c b/lib/mountlist.c
index 7d27a14a6..4784140a1 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