aboutsummaryrefslogtreecommitdiff
path: root/files.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-18 11:53:37 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-18 11:53:37 -0800
commit97cf726442f1cfcfd8b8a1ce5b7b1f77a50b34c3 (patch)
tree6bec442fa2b2c7a0e0cd1510c24f36c585f15f03 /files.h
parentd12cf8abbd2f3356348e82a20d95e9ba03b8cdf7 (diff)
More bools
Diffstat (limited to 'files.h')
-rw-r--r--files.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/files.h b/files.h
index b78e77e..f849a19 100644
--- a/files.h
+++ b/files.h
@@ -4,6 +4,7 @@
#ifndef FILES__H
#define FILES__H
+#include <stdbool.h>
#include <stdio.h>
struct allocated_pat_s; // declared in types.h
@@ -14,7 +15,7 @@ typedef struct file_s {
char *contents, **lines, *end;
size_t nlines;
struct allocated_pat_s *pats;
- unsigned int mmapped:1;
+ bool mmapped:1;
} file_t;
__attribute__((nonnull(2)))