(get_fs_usage): avoid compile warning about mixed declarations and code.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2012-09-27 10:52:04 +04:00
parent d53dc96704
commit 7298a32e0f

View File

@ -1352,11 +1352,11 @@ get_fs_usage (char const *file, char const *disk, struct fs_usage *fsp)
fsp->fsu_bavail_top_bit_set = EXTRACT_TOP_BIT (vfsd.f_bavail) != 0;
fsp->fsu_files = PROPAGATE_ALL_ONES (vfsd.f_files);
fsp->fsu_ffree = PROPAGATE_ALL_ONES (vfsd.f_ffree);
return 0;
}
else
#endif
{
#if defined STAT_STATVFS64 /* AIX */
struct statvfs64 fsd;
@ -1508,6 +1508,8 @@ get_fs_usage (char const *file, char const *disk, struct fs_usage *fsp)
fsp->fsu_ffree = PROPAGATE_ALL_ONES (fsd.f_ffree);
#endif
}
(void) disk; /* avoid argument-unused warning */
return 0;