wdvi

network DVI viewer
Log | Files | Refs

commit 8fb8bc7504470847602126e9bcbc4ae56b27b5ac
parent c6b47409852504a95862b744d28f4b0f5af4d40f
Author: Kyle Milz <krwmilz@gmail.com>
Date:   Thu, 19 Aug 2021 18:25:39 +0000

remove sun os 4 workaround

Diffstat:
Mutil.c | 32+-------------------------------
1 file changed, 1 insertion(+), 31 deletions(-)

diff --git a/util.c b/util.c @@ -338,36 +338,6 @@ close_a_file() ++n_files_left; } -/* - * This is necessary on some systems to work around a bug. - */ - -#if SUNOS4 -static void -close_small_file() -{ - struct font *fontp; - unsigned short oldest = ~0; - struct font *f = NULL; - - if (debug & DBG_OPEN) - Puts("Calling close_small_file()"); - - for (fontp = font_head; fontp != NULL; fontp = fontp->next) - if (fontp->file != NULL && fontp->timestamp <= oldest - && (unsigned char) fileno(fontp->file) < 128) { - f = fontp; - oldest = fontp->timestamp; - } - if (f == NULL) - oops("Can't find an open pixel file to close"); - Fclose(f->file); - f->file = NULL; - ++n_files_left; -} -#else -#define close_small_file close_a_file -#endif /* * Open a file in the given mode. @@ -525,7 +495,7 @@ ff_getpw(pp, p_end) if (count >= 2 && len != 0 && getpwuid(getuid()) != NULL) return NULL; - close_small_file(); + close_a_file(); } }