(fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:

Avoid warning by casting result to `char *' to remove `const'.
This commit is contained in:
Jim Meyering committed 2000-06-29 08:30:03 +00:00
1 parent 69b3d52b2a
commit a1fd5e91ff
1 file changed
+1 -1
+1 -1
View 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