From ab69e22f688ed0f0ceaddfb40a3958cfa44e1485 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Mon, 25 Dec 2023 17:05:07 +0100 Subject: Changed available_space() --- FICS/utils.c | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) (limited to 'FICS') diff --git a/FICS/utils.c b/FICS/utils.c index 441ec65..9c62696 100644 --- a/FICS/utils.c +++ b/FICS/utils.c @@ -816,28 +816,10 @@ PUBLIC char *dotQuad(unsigned int a) return tmp; } -PUBLIC int available_space(void) +PUBLIC int +available_space(void) { -#if defined(SYSTEM_NEXT) - struct statfs buf; - - statfs(player_dir, &buf); - return ((buf.f_bsize * buf.f_bavail)); -#elif defined(SYSTEM_ULTRIX) - struct fs_data buf; - - statfs(player_dir, &buf); - return ((1024 * buf.bfreen)); -#elif defined(SYSTEM_SUN4) -/* - struct statfs buf; - - statfs(player_dir, buf); - return (1024 * buf.f_bfree); */ - return 100000000; /* Infinite space */ -#else - return 100000000; /* Infinite space */ -#endif + return 100000000; /* Infinite space */ } PUBLIC int -- cgit v1.2.3