diff options
Diffstat (limited to 'lib/libc/stdio/ungetc.c')
| -rw-r--r-- | lib/libc/stdio/ungetc.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/libc/stdio/ungetc.c b/lib/libc/stdio/ungetc.c index 6698ba4cfd4..4391deb9a2a 100644 --- a/lib/libc/stdio/ungetc.c +++ b/lib/libc/stdio/ungetc.c @@ -1,4 +1,4 @@ -/* $NetBSD: ungetc.c,v 1.10 1999/09/16 11:45:31 lukem Exp $ */ +/* $NetBSD: ungetc.c,v 1.11 1999/09/20 04:39:33 lukem Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)ungetc.c 8.2 (Berkeley) 11/3/93"; #else -__RCSID("$NetBSD: ungetc.c,v 1.10 1999/09/16 11:45:31 lukem Exp $"); +__RCSID("$NetBSD: ungetc.c,v 1.11 1999/09/20 04:39:33 lukem Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -102,12 +102,6 @@ ungetc(c, fp) { _DIAGASSERT(fp != NULL); -#ifdef _DIAGNOSTIC - if (fp == NULL) { - errno = EBADF; - return (EOF); - } -#endif if (c == EOF) return (EOF); |
