From 76708e58aa9dc399b400d44b43ebe494b69837c1 Mon Sep 17 00:00:00 2001 From: tjr Date: Wed, 10 Mar 2004 11:13:23 +0000 Subject: Remove duplicate check for EOF from ungetc(); __ungetc() already checks. --- lib/libc/stdio/ungetc.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/libc') diff --git a/lib/libc/stdio/ungetc.c b/lib/libc/stdio/ungetc.c index cb38e9e..9ede083 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); -- cgit v1.1