From 84e0fb3f287864eca3a9322ef364b913f6a260bd Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Sun, 25 Dec 2022 20:41:46 -0500 Subject: Fix some warnings with -Wmissing-prototypes. Marked some functions as static (private) as needed and added missing includes. This also revealed some dead code which was removed. Note that -Wmissing-prototypes is not enabled here since there is a bunch more warnings. Message-Id: --- ddb/db_break.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ddb/db_break.c') diff --git a/ddb/db_break.c b/ddb/db_break.c index c3a9e181..c0962161 100644 --- a/ddb/db_break.c +++ b/ddb/db_break.c @@ -61,7 +61,7 @@ static db_thread_breakpoint_t db_free_thread_break_list = 0; static boolean_t db_thread_break_init = FALSE; static int db_breakpoint_number = 0; -db_breakpoint_t +static db_breakpoint_t db_breakpoint_alloc() { db_breakpoint_t bkpt; @@ -80,7 +80,7 @@ db_breakpoint_alloc() return (bkpt); } -void +static void db_breakpoint_free(bkpt) db_breakpoint_t bkpt; { @@ -319,7 +319,7 @@ db_set_breakpoint(task, addr, count, thread, task_bpt) } } -void +static void db_delete_breakpoint(task, addr, task_thd) const task_t task; db_addr_t addr; @@ -523,7 +523,7 @@ db_delete_temp_breakpoint( /* * List breakpoints. */ -void +static void db_list_breakpoints(void) { db_breakpoint_t bkpt; -- cgit v1.2.3