aboutsummaryrefslogtreecommitdiff
path: root/print.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-18 11:28:39 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-18 11:28:39 -0800
commit0b0e99bfac8e11463ae15211882aab98ba150dcb (patch)
treebbcce8c175438e8f6152207c9cd9099942230b2f /print.c
parente98574570ec0e355c6cff2b6e30bd992f20fe610 (diff)
A few more pedantic cleanups
Diffstat (limited to 'print.c')
-rw-r--r--print.c3
1 files changed, 2 insertions, 1 deletions
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 <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -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;