X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ffsusage.c;h=ade4195e33ac26ab2c269a1bb367bce43e3e7a22;hb=38db1b35bf51a7a738f27d2660a9fdd3b46447be;hp=f4bda097f5887473069dcaac3d6f00d7c5635b7d;hpb=e97e3a48d3a23446cf334e288aa6f138a6f9bae5;p=gnulib.git diff --git a/lib/fsusage.c b/lib/fsusage.c index f4bda097f..ade4195e3 100644 --- a/lib/fsusage.c +++ b/lib/fsusage.c @@ -1,6 +1,6 @@ /* fsusage.c -- return space usage of mounted file systems - Copyright (C) 1991-1992, 1996, 1998-1999, 2002-2006, 2008 + Copyright (C) 1991-1992, 1996, 1998-1999, 2002-2006, 2009 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify @@ -84,12 +84,6 @@ otherwise, use PROPAGATE_ALL_ONES. */ #define PROPAGATE_TOP_BIT(x) ((x) | ~ (EXTRACT_TOP_BIT (x) - 1)) -#ifdef STAT_READ_FILSYS -# define UNUSED_PARAM /* empty */ -#else -# define UNUSED_PARAM _UNUSED_PARAMETER_ -#endif - /* Fill in the fields of FSP with information about space usage for the file system on which FILE resides. DISK is the device on which FILE is mounted, for space-getting @@ -98,9 +92,9 @@ ERRNO is either a system error value, or zero if DISK is NULL on a system that requires a non-NULL value. */ int -get_fs_usage (char const *file, char const *disk UNUSED_PARAM, - struct fs_usage *fsp) +get_fs_usage (char const *file, char const *disk, struct fs_usage *fsp) { + (void) disk; /* avoid argument-unused warning */ #if defined STAT_STATVFS /* POSIX */ struct statvfs fsd;