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_watch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ddb/db_watch.c') diff --git a/ddb/db_watch.c b/ddb/db_watch.c index f0d0443f..5a845eca 100644 --- a/ddb/db_watch.c +++ b/ddb/db_watch.c @@ -64,7 +64,7 @@ db_watchpoint_t db_watchpoint_list = 0; extern vm_map_t kernel_map; -db_watchpoint_t +static db_watchpoint_t db_watchpoint_alloc(void) { db_watchpoint_t watch; @@ -83,7 +83,7 @@ db_watchpoint_alloc(void) return (watch); } -void +static void db_watchpoint_free(watch) db_watchpoint_t watch; { -- cgit v1.2.3