projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69b3d52
)
(fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
author
Jim Meyering
<jim@meyering.net>
Thu, 29 Jun 2000 08:30:03 +0000
(08:30 +0000)
committer
Jim 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
patch
|
blob
|
history
diff --git
a/lib/mountlist.c
b/lib/mountlist.c
index 7d27a14a6e3a832cd46bde30ba2d4873c17aa24f..4784140a14d95af089351a5f4e40d98e1898dffa 100644
(file)
--- 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