Skip to content

Commit

Permalink
Fix param decls of string_find() and bytes_find() (#4928)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazarmy authored Feb 23, 2025
1 parent 6720849 commit c0ee897
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion librz/search/bytes_search.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ static inline bool bytes_pattern_compare_masked(RZ_BORROW RZ_NONNULL const ut8 *
return true;
}

static bool bytes_find(RzSearchFindOpt *fopts, void *user, ut64 address, const RzBuffer *buffer, RzThreadQueue *hits) {
static bool bytes_find(RzSearchFindOpt *fopts, void *user, ut64 address, const RzBuffer *buffer, RZ_OUT RzThreadQueue *hits) {
if (!fopts) {
RZ_LOG_ERROR("bytes_find requires valid find options.\n");
return false;
Expand Down
4 changes: 3 additions & 1 deletion librz/search/string_search.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ static void align_offsets(RzUtilStrScanOptions options, RzStrEnc encoding, RzDet
}
}

static bool string_find(RZ_NULLABLE RzSearchFindOpt *fopt, void *user, ut64 offset, const RzBuffer *buffer, RZ_OUT RzThreadQueue *hits) {
static bool string_find(RzSearchFindOpt *fopt, void *user, ut64 offset, const RzBuffer *buffer, RZ_OUT RzThreadQueue *hits) {
rz_return_val_if_fail(fopt, false);

StringSearch *ss = (StringSearch *)user;
RzDetectedString *detected = NULL;
RzListIter *it_s = NULL;
Expand Down

0 comments on commit c0ee897

Please sign in to comment.