ddb: ansify

Reported by:	clang 15
Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Mateusz Guzik 2023-02-08 00:09:23 +00:00
parent 82c519c21f
commit fb1b78bfce

View File

@ -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)