Convert K&R definitions to ANSI C

This commit is contained in:
Nishi 2026-06-18 14:01:01 +09:00
commit 6bea197400
45 changed files with 522 additions and 1074 deletions

View file

@ -37,8 +37,7 @@ static char* getttys();
static char* ttys = "/etc/ttys";
#define NULL 0
nmttyslot(name) char* name;
int nmttyslot(char * name)
{
char *tp, *p;
int s, tf;
@ -63,9 +62,7 @@ nmttyslot(name) char* name;
return (0);
}
static char*
getttys(f)
int f;
static char* getttys(int f)
{
static char line[LINESIZE];
char* lp;