From c8cd13d8e9853752de5756ab42a98e2d0baff0a9 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Wed, 4 Jan 2023 00:30:28 -0500 Subject: Fix ddb warnings introduced with -Wstrict-prototypes Changed some ddb command functions to have the expected signature but not all of them due to the being difficult to inter-dependency between header files (for those just used cast). Message-Id: --- ddb/db_command.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ddb/db_command.h') diff --git a/ddb/db_command.h b/ddb/db_command.h index 4208bda8..73690a48 100644 --- a/ddb/db_command.h +++ b/ddb/db_command.h @@ -53,12 +53,14 @@ extern db_addr_t db_next; /* next address to be examined or written */ extern jmp_buf_t * db_recover; /* error recovery */ +typedef void (*db_command_fun_t)(db_expr_t, boolean_t, db_expr_t, const char *); + /* * Command table */ struct db_command { char * name; /* command name */ - void (*fcn)(); /* function to call */ + db_command_fun_t fcn; /* function to call */ int flag; /* extra info: */ #define CS_OWN 0x1 /* non-standard syntax */ #define CS_MORE 0x2 /* standard syntax, but may have other -- cgit v1.2.3