aboutsummaryrefslogtreecommitdiff
path: root/json.c
diff options
context:
space:
mode:
Diffstat (limited to 'json.c')
-rw-r--r--json.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/json.c b/json.c
index 6ec9fcd..18b1fa6 100644
--- a/json.c
+++ b/json.c
@@ -4,17 +4,17 @@
#include <stdio.h>
-#include "types.h"
+#include "json.h"
__attribute__((nonnull))
-static int _json_match(const char *text, match_t *m, int comma, unsigned int verbose);
+static int _json_match(const char *text, match_t *m, int comma, bool verbose);
//
// Helper function for json_match().
// `comma` is used to track whether a comma will need to be printed before the
// next object or not.
//
-static int _json_match(const char *text, match_t *m, int comma, unsigned int verbose)
+static int _json_match(const char *text, match_t *m, int comma, bool verbose)
{
if (!verbose) {
if (m->pat->type != BP_REF) {
@@ -49,7 +49,7 @@ static int _json_match(const char *text, match_t *m, int comma, unsigned int ver
//
// Print a match object as a JSON object.
//
-void json_match(const char *text, match_t *m, unsigned int verbose)
+void json_match(const char *text, match_t *m, bool verbose)
{
(void)_json_match(text, m, 0, verbose);
}