Hi, Convert K&R function definitions to modern C.
OK? bye, Jan Index: ftpcmd.y =================================================================== RCS file: /cvs/src/libexec/ftpd/ftpcmd.y,v retrieving revision 1.72 diff -u -p -r1.72 ftpcmd.y --- ftpcmd.y 23 May 2021 17:01:21 -0000 1.72 +++ ftpcmd.y 30 May 2021 15:32:50 -0000 @@ -1072,9 +1072,7 @@ static int yylex(void); extern int epsvall; static struct tab * -lookup(p, cmd) - struct tab *p; - const char *cmd; +lookup(struct tab *p, const char *cmd) { for (; p->name != NULL; p++) @@ -1089,9 +1087,7 @@ lookup(p, cmd) * get_line - a hacked up version of fgets to ignore TELNET escape codes. */ int -get_line(s, n) - char *s; - int n; +get_line(char *s, int n) { int c; char *cs; @@ -1176,8 +1172,7 @@ get_line(s, n) /*ARGSUSED*/ void -toolong(signo) - int signo; +toolong(int signo) { struct syslog_data sdata = SYSLOG_DATA_INIT; @@ -1190,7 +1185,7 @@ toolong(signo) } static int -yylex() +yylex(void) { static int cpos; char *cp, *cp2; @@ -1429,8 +1424,7 @@ yylex() } void -upper(s) - char *s; +upper(char *s) { char *p; @@ -1439,9 +1433,7 @@ upper(s) } static void -help(ctab, s) - struct tab *ctab; - char *s; +help(struct tab *ctab, char *s) { struct tab *c; int width, NCMDS; @@ -1504,8 +1496,7 @@ help(ctab, s) } static void -sizecmd(filename) - const char *filename; +sizecmd(const char *filename) { switch (type) { case TYPE_L: Index: monitor.c =================================================================== RCS file: /cvs/src/libexec/ftpd/monitor.c,v retrieving revision 1.28 diff -u -p -r1.28 monitor.c --- monitor.c 20 May 2021 15:21:03 -0000 1.28 +++ monitor.c 30 May 2021 15:38:52 -0000 @@ -206,7 +206,7 @@ monitor_init(void) * for the user-privileged slave process and 1 for the monitor process. */ int -monitor_post_auth() +monitor_post_auth(void) { slave_pid = fork(); if (slave_pid == -1)