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_input.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ddb/db_input.c') diff --git a/ddb/db_input.c b/ddb/db_input.c index b70299d3..a564025e 100644 --- a/ddb/db_input.c +++ b/ddb/db_input.c @@ -67,7 +67,7 @@ char * db_history_prev = (char *) 0; /* start of previous line */ #define BLANK ' ' #define BACKUP '\b' -void +static void db_putstring(s, count) const char *s; int count; @@ -76,7 +76,7 @@ db_putstring(s, count) cnputc(*s++); } -void +static void db_putnchars(c, count) int c; int count; @@ -90,7 +90,7 @@ db_putnchars(c, count) */ #define DEL_FWD 0 #define DEL_BWD 1 -void +static void db_delete( int n, int bwd) @@ -110,7 +110,7 @@ db_delete( db_le -= n; } -void +static void db_delete_line(void) { db_delete(db_le - db_lc, DEL_FWD); @@ -136,7 +136,7 @@ db_delete_line(void) #endif /* DB_HISTORY_SIZE */ /* returns TRUE at end-of-line */ -boolean_t +static boolean_t db_inputchar(int c) { static int escaped, csi; -- cgit v1.2.3