From 11e8886958ed745a0bfe2113478105d9b508b36a Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 2 Aug 2004 18:43:56 +0000 Subject: [PATCH] Include . (struct fs_usage): Use uintmax_t for block sizes, so that they're not limited to INT_MAX. Use bool for booleans. --- lib/fsusage.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/fsusage.h b/lib/fsusage.h index 060d957e9c..7528b89023 100644 --- a/lib/fsusage.h +++ b/lib/fsusage.h @@ -22,13 +22,15 @@ #if !defined FSUSAGE_H_ # define FSUSAGE_H_ +# include + struct fs_usage { - int fsu_blocksize; /* Size of a block. */ + uintmax_t fsu_blocksize; /* Size of a block. */ uintmax_t fsu_blocks; /* Total blocks. */ uintmax_t fsu_bfree; /* Free blocks available to superuser. */ uintmax_t fsu_bavail; /* Free blocks available to non-superuser. */ - int fsu_bavail_top_bit_set; /* 1 if fsu_bavail represents a value < 0. */ + bool fsu_bavail_top_bit_set; /* 1 if fsu_bavail represents a value < 0. */ uintmax_t fsu_files; /* Total file nodes. */ uintmax_t fsu_ffree; /* Free file nodes. */ }; -- 2.47.2