shithub: riscv

Download patch

ref: fc1d4d1b24669d870a45310f8122e6b10ff953d0
parent: e25eabc46f31363d8a55a4cae195ef572424b003
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;