git: fb1b78bfcead - main - ddb: ansify

From: Mateusz Guzik <mjg_at_FreeBSD.org>
Date: Wed, 08 Feb 2023 00:09:39 UTC
The branch main has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=fb1b78bfcead2126f9a984ac1c3e6a3a7e505f83

commit fb1b78bfcead2126f9a984ac1c3e6a3a7e505f83
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2023-02-08 00:09:23 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2023-02-08 00:09:23 +0000

    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)