From e65af5d4e422db4722e2cc026ecca5607dedfc5a Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Fri, 8 Oct 2021 12:45:56 +0000 Subject: [PATCH] Fix fdclose conflict in drawterm (thanks Christos Margiolis) --- kern/sysfile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kern/sysfile.c b/kern/sysfile.c index 04af4e3..413c0eb 100644 --- a/kern/sysfile.c +++ b/kern/sysfile.c @@ -293,7 +293,7 @@ _sysopen(char *name, int mode) } static void -fdclose(int fd, int flag) +_fdclose(int fd, int flag) { int i; Chan *c; @@ -325,7 +325,7 @@ long _sysclose(int fd) { fdtochan(fd, -1, 0, 0); - fdclose(fd, 0); + _fdclose(fd, 0); return 0; } @@ -698,7 +698,7 @@ bindmount(int ismount, int fd, int afd, char* arg0, char* arg1, int flag, char* poperror(); cclose(c0); if(ismount){ - fdclose(fd, 0); + _fdclose(fd, 0); poperror(); free(spec); } -- 2.34.2