mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-15 17:02:14 +03:00
nfa: unify NfaCallback and SomNfaCallback
Use just one callback type, with both start and end offsets.
This commit is contained in:
committed by
Matthew Barr
parent
9087d59be5
commit
cf9e40ae1c
@@ -87,7 +87,7 @@ char ok_and_mark_if_unset(u8 *som_store_valid, struct fatbit *som_set_now,
|
||||
}
|
||||
|
||||
static
|
||||
int somRevCallback(u64a offset, ReportID id, void *ctx) {
|
||||
int somRevCallback(UNUSED u64a som, u64a offset, ReportID id, void *ctx) {
|
||||
DEBUG_PRINTF("offset=%llu, id=%u\n", offset, id);
|
||||
|
||||
// We use the id to store the offset adjustment (for assertions like a
|
||||
|
||||
Reference in New Issue
Block a user