From 97cf726442f1cfcfd8b8a1ce5b7b1f77a50b34c3 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 18 Jan 2021 11:53:37 -0800 Subject: More bools --- files.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'files.c') diff --git a/files.c b/files.c index 9912226..6d43c03 100644 --- a/files.c +++ b/files.c @@ -76,12 +76,12 @@ file_t *load_file(file_t **files, const char *filename) if (f->contents == MAP_FAILED) goto skip_mmap; - f->mmapped = 1; + f->mmapped = true; length = (size_t)sb.st_size; goto finished_loading; skip_mmap: - f->mmapped = 0; + f->mmapped = false; size_t capacity = 1000; length = 0; f->contents = xcalloc(sizeof(char), capacity); @@ -135,7 +135,7 @@ void intern_file(file_t *f) "Failure to un-memory-map some memory"); f->contents = buf; f->end = buf + size; - f->mmapped = 0; + f->mmapped = false; xfree(&f->lines); populate_lines(f); } -- cgit v1.2.3