From b5c60fc7870a66d89de571e96596b0745edcd6d9 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 27 Jan 2008 23:41:34 +0000 Subject: mkswap, readahead: stop using fdlength, it is reported to be unreliable --- libbb/xfuncs.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libbb/xfuncs.c') diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index 25c36bd07..445e07717 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c @@ -475,6 +475,7 @@ void xsetuid(uid_t uid) } // Return how long the file at fd is, if there's any way to determine it. +#ifdef UNUSED off_t fdlength(int fd) { off_t bottom = 0, top = 0, pos; @@ -513,6 +514,7 @@ off_t fdlength(int fd) return pos + 1; } +#endif int bb_putchar(int ch) { -- cgit v1.2.3