ref: 4345d0f89ed096e7f03a6d170ab3889836c6ea14
parent: 063abab25295ba3db51edac3621bd83f1bd71921
author: Jacob Moody <moody@posixcafe.org>
date: Sat Jul 22 22:35:25 EDT 2023
ape: ansi-ify isatty and listen
--- a/sys/src/ape/lib/ap/plan9/isatty.c
+++ b/sys/src/ape/lib/ap/plan9/isatty.c
@@ -19,7 +19,7 @@
/* The FD_ISTTY flag is set via _isatty in _fdsetup or open */
int
-isatty(fd)
+isatty(int fd)
{
if(_fdinfo[fd].flags&FD_ISTTY)
return 1;
--- a/sys/src/ape/lib/bsd/listen.c
+++ b/sys/src/ape/lib/bsd/listen.c
@@ -116,9 +116,7 @@
}
int
-listen(fd, backlog)
- int fd;
- int backlog;
+listen(int fd, int backlog)
{
Rock *r;
int n, cfd;
--
⑨