summaryrefslogtreecommitdiff
path: root/src/df.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-06-04 06:51:46 +0000
committerJim Meyering <jim@meyering.net>2000-06-04 06:51:46 +0000
commit98a1d5e72a7a9188607107b07f203651818c1ffc (patch)
treee36137e6163c56aea817bb4ecb9346cad903b8e0 /src/df.c
parent985cf06296f0a9861fe68b88db4aa4f4fc1abf58 (diff)
downloadcoreutils-98a1d5e72a7a9188607107b07f203651818c1ffc.tar.xz
(show_point) [HAVE_REALPATH && !HAVE_RESOLVEPATH]:
Cast undeclared `realpath' to char* to avoid warning.
Diffstat (limited to 'src/df.c')
-rw-r--r--src/df.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/df.c b/src/df.c
index e3a074362..f5ca9016e 100644
--- a/src/df.c
+++ b/src/df.c
@@ -576,7 +576,7 @@ show_point (const char *point, const struct stat *statp)
}
# else
resolved = alloca (PATH_MAX + 1);
- resolved = realpath (abspoint, resolved);
+ resolved = (char *) realpath (abspoint, resolved);
resolved_len = resolved ? strlen (resolved) : -1;
# endif