Skip to content

Commit

Permalink
Switch r_core_gdiff_fcn return value to bool
Browse files Browse the repository at this point in the history
  • Loading branch information
jukuisma authored and trufae committed Jan 22, 2025
1 parent ec4025b commit 6c5ac57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions libr/core/gdiff.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

#include <r_core.h>

// R2_600 -return bool instead of int
R_API int r_core_gdiff_fcn(RCore *c, ut64 addr, ut64 addr2) {
R_API bool r_core_gdiff_fcn(RCore *c, ut64 addr, ut64 addr2) {
R_RETURN_VAL_IF_FAIL (c, false);
RAnalFunction *fa = r_anal_get_function_at (c->anal, addr);
RAnalFunction *fb = r_anal_get_function_at (c->anal, addr2);
Expand Down
2 changes: 1 addition & 1 deletion libr/include/r_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ R_API int r_core_pseudo_code(RCore *core, const char *input);
/* gdiff.c */
R_API bool r_core_zdiff(RCore *c, RCore *c2);
R_API bool r_core_gdiff(RCore *core1, RCore *core2);
R_API int r_core_gdiff_fcn(RCore *c, ut64 addr, ut64 addr2);
R_API bool r_core_gdiff_fcn(RCore *c, ut64 addr, ut64 addr2);

/* project */
R_API void r_core_project_execute_cmds(RCore *core, const char *prjfile);
Expand Down

0 comments on commit 6c5ac57

Please sign in to comment.