ref: e65af5d4e422db4722e2cc026ecca5607dedfc5a
parent: 823eea4c3d7da44cd4b2a27aa53cc16c7c67680b
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Oct 8 08:45:56 EDT 2021
Fix fdclose conflict in drawterm (thanks Christos Margiolis)
--- a/kern/sysfile.c
+++ b/kern/sysfile.c
@@ -293,7 +293,7 @@
}
static void
-fdclose(int fd, int flag)
+_fdclose(int fd, int flag)
{
int i;
Chan *c;
@@ -325,7 +325,7 @@
_sysclose(int fd)
{
fdtochan(fd, -1, 0, 0);
- fdclose(fd, 0);
+ _fdclose(fd, 0);
return 0;
}
@@ -698,7 +698,7 @@
poperror();
cclose(c0);
if(ismount){
- fdclose(fd, 0);
+ _fdclose(fd, 0);
poperror();
free(spec);
}