Fix build on latest rizin dev

This commit is contained in:
wargio committed 2026-06-02 15:08:39 +08:00
1 parent ac88882529
commit 65821969c1
2 files changed
+5 -7

No files matched your search

+4 -2
View File
@@ -280,7 +280,8 @@ command_handler(pddi, "--issue");
command_handler(pddj, "--as-json");
command_handler(pddo, "--offsets");
static bool rz_cmd_pdd_init(RzCore *core) {
static bool rz_cmd_pdd_init(RzCore *core, void **user) {
(void)user;
RzCmd *rcmd = core->rcmd;
RzConfig *cfg = core->config;
RzCmdDesc *root_cd = rz_cmd_get_desc(rcmd, "pd");
@@ -319,7 +320,8 @@ static bool rz_cmd_pdd_init(RzCore *core) {
return true;
}
static bool rz_cmd_pdd_fini(RzCore *core) {
static bool rz_cmd_pdd_fini(RzCore *core, void *user) {
(void)user;
RzCmd *rcmd = core->rcmd;
RzCmdDesc *cd = rz_cmd_get_desc(rcmd, "pdd");
return rz_cmd_desc_remove(rcmd, cd);
+1 -5
View File
@@ -447,7 +447,7 @@ void help(void)
int main(int argc, char **argv)
{
int c, i, verbose;
int c, i;
const char *out_filename, *cname, *script_name;
char cfilename[1024];
FILE *fo;
@@ -462,7 +462,6 @@ int main(int argc, char **argv)
output_type = OUTPUT_C;
cname = NULL;
module = -1;
verbose = 0;
strip = 0;
stack_size = 0;
memset(&dynamic_module_list, 0, sizeof(dynamic_module_list));
@@ -519,9 +518,6 @@ int main(int argc, char **argv)
case 's':
strip++;
break;
case 'v':
verbose++;
break;
case 'p':
c_ident_prefix = optarg;
break;