History

Fix fdclose conflict in drawterm (thanks Christos Margiolis)

cinap_lenrek committed 5 years ago

Commit e65af5d1 parent 823eea41 file · +3 −3Browse files

Unified · Split

kern/sysfile.c+3−3
@@ -293,7 +293,7 @@ _sysopen(char *name, int mode) · 292 unmodified lines
293293 }
294294
295295 static void
296−fdclose(int fd, int flag)
296+_fdclose(int fd, int flag)
297297 {
298298 int i;
299299 Chan *c;
@@ -325,7 +325,7 @@ long · 25 unmodified lines
325325 _sysclose(int fd)
326326 {
327327 fdtochan(fd, -1, 0, 0);
328− fdclose(fd, 0);
328+ _fdclose(fd, 0);
329329
330330 return 0;
331331 }
@@ -698,7 +698,7 @@ bindmount(int ismount, int fd, int afd, char* arg0, char* arg1, int flag, char* · 366 unmodified lines
698698 poperror();
699699 cclose(c0);
700700 if(ismount){
701− fdclose(fd, 0);
701+ _fdclose(fd, 0);
702702 poperror();
703703 free(spec);
704704 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t