Fix build for ABIVERSION >= 125 (r2-6.2.0) - thanks @stygian-ash

This commit is contained in:
pancake committed 2026-08-08 12:33:51 +02:00
1 parent 1c7b79308a
commit 57da6163f6
1 file changed
+4 -4
+4 -4
View File
@@ -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;
}
}