From fb1b78bfcead2126f9a984ac1c3e6a3a7e505f83 Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Wed, 8 Feb 2023 00:09:23 +0000 Subject: [PATCH] ddb: ansify Reported by: clang 15 Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/ddb/db_input.c | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/sys/ddb/db_input.c b/sys/ddb/db_input.c index a7d06e17f5c1..c5ee6c664a96 100644 --- a/sys/ddb/db_input.c +++ b/sys/ddb/db_input.c @@ -88,18 +88,14 @@ static void db_raw_push(int); static int db_raw_space(void); static void -db_putstring(s, count) - char *s; - int count; +db_putstring(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); @@ -111,9 +107,7 @@ db_putnchars(c, count) #define DEL_FWD 0 #define DEL_BWD 1 static void -db_delete(n, bwd) - int n; - int bwd; +db_delete(int n, int bwd) { char *p; @@ -132,8 +126,7 @@ db_delete(n, bwd) /* returns true at end-of-line */ static int -db_inputchar(c) - int c; +db_inputchar(int c) { static int escstate; @@ -370,9 +363,7 @@ db_raw_pop(void) } int -db_readline(lstart, lsize) - char * lstart; - int lsize; +db_readline(char *lstart, int lsize) { if (lsize < 2)