mirror of
https://github.com/radareorg/r2unity.git
synced 2026-11-07 06:36:00 -10:00
Fix build for ABIVERSION >= 125 (r2-6.2.0) - thanks @stygian-ash
This commit is contained in:
1 parent
1c7b79308a
commit
57da6163f6
1 file changed
+4
-4
@@ -1225,7 +1225,7 @@ static bool r2unity_call(RCorePluginSession *cps, const char *input) {
|
||||
|
||||
/* "r2unity" alone, or "r2unity?" */
|
||||
if (*rest == 0 || *rest == '?') {
|
||||
r_core_cmd_help (core, g_help_msg);
|
||||
r_cons_cmd_help (core->cons, g_help_msg);
|
||||
return true;
|
||||
}
|
||||
if (*rest != '-') {
|
||||
@@ -1243,7 +1243,7 @@ static bool r2unity_call(RCorePluginSession *cps, const char *input) {
|
||||
rest++;
|
||||
}
|
||||
if (*rest && *rest != ' ' && *rest != '\t') {
|
||||
r_core_cmd_help (core, g_help_msg);
|
||||
r_cons_cmd_help (core->cons, g_help_msg);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -1270,10 +1270,10 @@ static bool r2unity_call(RCorePluginSession *cps, const char *input) {
|
||||
return cmd_sbom (core, mode) == 0;
|
||||
case '?':
|
||||
case 'h':
|
||||
r_core_cmd_help (core, g_help_msg);
|
||||
r_cons_cmd_help (core->cons, g_help_msg);
|
||||
return true;
|
||||
default:
|
||||
r_core_cmd_help (core, g_help_msg);
|
||||
r_cons_cmd_help (core->cons, g_help_msg);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user