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_break.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'ddb/db_break.c') diff --git a/ddb/db_break.c b/ddb/db_break.c index 0456f5f9..780c1ccc 100644 --- a/ddb/db_break.c +++ b/ddb/db_break.c @@ -62,7 +62,7 @@ static boolean_t db_thread_break_init = FALSE; static int db_breakpoint_number = 0; static db_breakpoint_t -db_breakpoint_alloc() +db_breakpoint_alloc(void) { db_breakpoint_t bkpt; @@ -597,7 +597,11 @@ db_list_breakpoints(void) /* Delete breakpoint */ /*ARGSUSED*/ void -db_delete_cmd(void) +db_delete_cmd( + db_expr_t, + boolean_t, + db_expr_t, + const char *) { int n; thread_t thread; @@ -730,7 +734,11 @@ db_breakpoint_cmd( /* list breakpoints */ void -db_listbreak_cmd(void) +db_listbreak_cmd( + db_expr_t, + boolean_t, + db_expr_t, + const char *) { db_list_breakpoints(); } -- cgit v1.2.3