aboutsummaryrefslogtreecommitdiff
path: root/json.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-05-28 02:05:57 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-05-28 02:05:57 -0400
commit2ec9f76b7221938061d12e268e97bc33e5653a8e (patch)
tree478a13579034b8bf0a2a533f59ed526b6667573d /json.c
parentacdb6ff91b60dab1c65d92f2de35a553ebcb3301 (diff)
Rename 'Match' macro to avoid confusion
Diffstat (limited to 'json.c')
-rw-r--r--json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/json.c b/json.c
index 448dbe7..e0e1c22 100644
--- a/json.c
+++ b/json.c
@@ -29,7 +29,7 @@ static int _json_match(const char *text, match_t *m, int comma, bool verbose)
comma = 0;
printf("{");
if (m->pat->type == BP_TAGGED) {
- printf("\"tag\":\"%.*s\"", (int)Match(m->pat, BP_TAGGED)->namelen, Match(m->pat, BP_TAGGED)->name);
+ printf("\"tag\":\"%.*s\"", (int)When(m->pat, BP_TAGGED)->namelen, When(m->pat, BP_TAGGED)->name);
comma = 1;
}
if (verbose) {