From 76708e58aa9dc399b400d44b43ebe494b69837c1 Mon Sep 17 00:00:00 2001 From: tjr Date: Wed, 10 Mar 2004 11:13:23 +0000 Subject: [PATCH] Remove duplicate check for EOF from ungetc(); __ungetc() already checks. --- lib/libc/stdio/ungetc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/libc/stdio/ungetc.c b/lib/libc/stdio/ungetc.c index cb38e9eaa4a..9ede08360ce 100644 --- a/lib/libc/stdio/ungetc.c +++ b/lib/libc/stdio/ungetc.c @@ -96,8 +96,6 @@ ungetc(int c, FILE *fp) { int ret; - if (c == EOF) - return (EOF); if (!__sdidinit) __sinit(); FLOCKFILE(fp); -- 2.45.2