]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Include <stdbool.h>.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 Aug 2004 18:43:56 +0000 (18:43 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 Aug 2004 18:43:56 +0000 (18:43 +0000)
(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

index 060d957e9c385da94a03755f519168208455666a..7528b89023bc9763d52feb90b9952486937b4c99 100644 (file)
 #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. */
 };