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_variables.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ddb/db_variables.c') diff --git a/ddb/db_variables.c b/ddb/db_variables.c index 0fd9bad0..5403cc9a 100644 --- a/ddb/db_variables.c +++ b/ddb/db_variables.c @@ -70,7 +70,7 @@ struct db_variable db_vars[] = { }; struct db_variable *db_evars = db_vars + sizeof(db_vars)/sizeof(db_vars[0]); -const char * +static const char * db_get_suffix(suffix, suffix_value) const char *suffix; short *suffix_value; @@ -116,7 +116,7 @@ db_cmp_variable_name(vp, name, ap) return(TRUE); } -int +static int db_find_variable( struct db_variable **varp, db_var_aux_param_t ap) -- cgit v1.2.3