Skip to content

Commit 643f809

Browse files
committed
rpp.c: Use LOG_ONCE macro
1 parent 5451f66 commit 643f809

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/rpp.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,7 @@ static void rpp_process_rule(struct rpp_context *ctx)
134134
if (strlen(conv) == strlen8(input))
135135
strcpy(ctx->input->data, conv); /* Always shorter than original */
136136
else {
137-
static int warned;
138-
139-
if (!warned++)
140-
log_event("- Rule preprocessor: Rejected rule(s) not fitting current internal codepage");
137+
LOG_ONCE("- Rule preprocessor: Rejected rule(s) not fitting current internal codepage");
141138
input[1] = '-';
142139
}
143140
}

0 commit comments

Comments
 (0)