From c8cd13d8e9853752de5756ab42a98e2d0baff0a9 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Wed, 4 Jan 2023 00:30:28 -0500 Subject: Fix ddb warnings introduced with -Wstrict-prototypes Changed some ddb command functions to have the expected signature but not all of them due to the being difficult to inter-dependency between header files (for those just used cast). Message-Id: --- ddb/db_input.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'ddb/db_input.c') diff --git a/ddb/db_input.c b/ddb/db_input.c index a564025e..357474b7 100644 --- a/ddb/db_input.c +++ b/ddb/db_input.c @@ -68,18 +68,14 @@ char * db_history_prev = (char *) 0; /* start of previous line */ #define BACKUP '\b' static void -db_putstring(s, count) - const char *s; - int count; +db_putstring(const char *s, int count) { while (--count >= 0) cnputc(*s++); } static void -db_putnchars(c, count) - int c; - int count; +db_putnchars(int c, int count) { while (--count >= 0) cnputc(c); -- cgit v1.2.3