From 0b0e99bfac8e11463ae15211882aab98ba150dcb Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 18 Jan 2021 11:28:39 -0800 Subject: A few more pedantic cleanups --- print.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'print.c') diff --git a/print.c b/print.c index c5610a9..21c1aee 100644 --- a/print.c +++ b/print.c @@ -2,6 +2,7 @@ // print.c - Code for printing and visualizing matches. // +#include #include #include #include @@ -347,7 +348,7 @@ static void _print_match(FILE *out, printer_t *pr, match_t *m) void print_match(FILE *out, printer_t *pr, match_t *m) { current_color = color_normal; - int first = (pr->pos == NULL); + bool first = (pr->pos == NULL); if (first) { // First match printed: pr->pos = pr->file->contents; pr->needs_line_number = 1; -- cgit v1.2.3