ref: 5b5f69513adcb9939e4ebd93bf8adfbfdc08fcf1
parent: 118063142163382a1b21f205e982c818fecb4f09
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Oct 23 11:54:30 EDT 2021
kernel: make growfd(), findfreefd() and newfd2() static
--- a/sys/src/9/port/sysfile.c
+++ b/sys/src/9/port/sysfile.c
@@ -21,7 +21,7 @@
pprint("warning: process exceeds %d file descriptors\n", ex);
}
-int
+static int
growfd(Fgrp *f, int fd) /* fd is always >= 0 */
{
Chan **newfd, **oldfd;
@@ -70,7 +70,7 @@
/*
* this assumes that the fgrp is locked
*/
-int
+static int
findfreefd(Fgrp *f, int start)
{
int fd;
@@ -110,7 +110,7 @@
return fd;
}
-int
+static int
newfd2(int fd[2], Chan *c[2])
{
Fgrp *f;