From f6b313d81f1f65549a2e071e6ea57e81eb891ada Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 2 Jan 2015 10:21:36 +0000 Subject: [PATCH] df.c: Add explicit cast to char * for fsys From: Sergio L. Pascual --- Applications/util/df.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/util/df.c b/Applications/util/df.c index f1c42b0a..3bb99d0f 100644 --- a/Applications/util/df.c +++ b/Applications/util/df.c @@ -45,7 +45,7 @@ int main(int argc, char *argv[]) } } else { for (j = 0; j < 8; ++j) { - if ((_getfsys(j, &fsys) == 0) && fsys.s_mounted) { + if ((_getfsys(j, (char *) &fsys) == 0) && fsys.s_mounted) { Total = iflag ? 8 * (fsys.s_isize - 2) : fsys.s_fsize; Used = iflag ? Total - fsys.s_tinode : Total - fsys.s_isize - fsys.s_tfree; -- 2.34.1