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_sym.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ddb/db_sym.c') diff --git a/ddb/db_sym.c b/ddb/db_sym.c index 2abd5746..a6a64eae 100644 --- a/ddb/db_sym.c +++ b/ddb/db_sym.c @@ -264,7 +264,7 @@ out: */ boolean_t db_qualify_ambiguous_names = FALSE; -boolean_t +static boolean_t db_name_is_ambiguous(char *sym_name) { int i; @@ -507,8 +507,8 @@ void db_free_symbol(db_sym_t s) * Switch into symbol-table specific routines */ -void dummy_db_free_symbol(db_sym_t symbol) { } -boolean_t dummy_db_sym_init(char *a, char *b, char *c, char *d) { +static void dummy_db_free_symbol(db_sym_t symbol) { } +static boolean_t dummy_db_sym_init(char *a, char *b, char *c, char *d) { return FALSE; } -- cgit v1.2.3