diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2023-10-05 07:03:16 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2023-10-05 07:03:16 (GMT) |
commit | 1e28e6b94d5561129162d760d99bcf1e81f9528c (patch) | |
tree | df531593c73732f130b9ea5edeff53602042ca54 /src/analysis/scan/rule.c | |
parent | 7464e2bf0ba5469e20eef5f16643ab6043b0179e (diff) |
Rename search tokens from "string" to "bytes".
Diffstat (limited to 'src/analysis/scan/rule.c')
-rw-r--r-- | src/analysis/scan/rule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/analysis/scan/rule.c b/src/analysis/scan/rule.c index 60842c2..77a05b4 100644 --- a/src/analysis/scan/rule.c +++ b/src/analysis/scan/rule.c @@ -342,7 +342,7 @@ const char * const *g_scan_rule_list_tags(const GScanRule *rule, size_t *count) void g_scan_rule_add_local_variable(GScanRule *rule, GSearchPattern *pattern) { - if (G_IS_STRING_TOKEN(pattern)) + if (G_IS_BYTES_TOKEN(pattern)) { if (rule->bytes_used == rule->bytes_allocated) { @@ -553,7 +553,7 @@ bool g_scan_rule_setup_backend(GScanRule *rule, GEngineBackend *backend, GScanCo for (i = 0; i < rule->bytes_used && result; i++) { pattern = rule->bytes_locals[i]; - result = g_string_token_enroll(G_STRING_TOKEN(pattern), context, backend, maxsize); + result = g_bytes_token_enroll(G_BYTES_TOKEN(pattern), context, backend, maxsize); } g_engine_backend_warm_up(backend); @@ -614,7 +614,7 @@ void g_scan_rule_check(GScanRule *rule, GEngineBackend *backend, GScanContext *c pattern = rule->bytes_locals[i]; - g_string_token_check(G_STRING_TOKEN(pattern), context, content, &matches); + g_bytes_token_check(G_BYTES_TOKEN(pattern), context, content, &matches); for (k = 0; k < matches.used; k++) { |