From 32fe3f0334c76361868c5f78b913d659e9bbf34b Mon Sep 17 00:00:00 2001 From: Hiroshi Hatake Date: Wed, 21 Feb 2024 11:32:23 +0900 Subject: [PATCH] filter: Clarify the comments Signed-off-by: Hiroshi Hatake --- src/cmt_filter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmt_filter.c b/src/cmt_filter.c index 8afa003..68a5056 100644 --- a/src/cmt_filter.c +++ b/src/cmt_filter.c @@ -62,7 +62,7 @@ static int compare_label_keys(struct cmt_map *src, const char *label_key, /* Compare with an external context (e.g. Onigmo). * flb_regex_match should take three arguments that are * flb_regex context, string and its string length. - * The length of string is changed and not determined by label_key. + * The length of string is changed by the callback and not determined by label_key. */ if (compare_ctx != NULL && compare != NULL) { return compare(compare_ctx, label->name, strlen(label->name)); @@ -183,7 +183,7 @@ static int compare_fqname(struct cmt_opts *src, const char *fqname, /* Compare with an external context (e.g. Onigmo). * flb_regex_match should take three arguments that are * flb_regex context, string and its string length. - * The length of string is changed and not determined by fqname. + * The length of string is changed by the callback and not determined by fqname. */ if (compare_ctx != NULL && compare != NULL) { return compare(compare_ctx, src->fqname, strlen(src->fqname));