diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-02 18:43:56 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-02 18:43:56 +0000 |
commit | 11e8886958ed745a0bfe2113478105d9b508b36a (patch) | |
tree | 2722e61cbc1abc2646fa3edc25f62f97414d92c2 /lib/fsusage.h | |
parent | 2f9bb99f37a02370b53f1b39a3ed99ae3f1baf4e (diff) | |
download | coreutils-11e8886958ed745a0bfe2113478105d9b508b36a.tar.xz |
Include <stdbool.h>.
(struct fs_usage): Use uintmax_t for block sizes, so that they're
not limited to INT_MAX.
Use bool for booleans.
Diffstat (limited to 'lib/fsusage.h')
-rw-r--r-- | lib/fsusage.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/fsusage.h b/lib/fsusage.h index 060d957e9..7528b8902 100644 --- a/lib/fsusage.h +++ b/lib/fsusage.h @@ -22,13 +22,15 @@ #if !defined FSUSAGE_H_ # define FSUSAGE_H_ +# include <stdbool.h> + 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. */ }; |