diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-01-18 11:28:39 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-01-18 11:28:39 -0800 |
| commit | 0b0e99bfac8e11463ae15211882aab98ba150dcb (patch) | |
| tree | bbcce8c175438e8f6152207c9cd9099942230b2f /print.c | |
| parent | e98574570ec0e355c6cff2b6e30bd992f20fe610 (diff) | |
A few more pedantic cleanups
Diffstat (limited to 'print.c')
| -rw-r--r-- | print.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |
