git: 9front

Download patch

ref: 7bc43d5538ad54c034ad28eb221c96317a61d466
parent: 24d545ef907bfa0f59d488f41f8fb0f4909e0ad6
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;
--