From b893e6c496141ad1b9c9ac7424743d98fc89da5e Mon Sep 17 00:00:00 2001 From: tjr Date: Fri, 19 Mar 2004 09:04:56 +0000 Subject: Do not redundantly set the stream orientation in getc(), putc(), and related functions - __sgetc() and __sputc() will set it when necessary. --- lib/libc/stdio/getc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libc/stdio/getc.c') diff --git a/lib/libc/stdio/getc.c b/lib/libc/stdio/getc.c index 5732568..61b2c54 100644 --- a/lib/libc/stdio/getc.c +++ b/lib/libc/stdio/getc.c @@ -53,7 +53,8 @@ getc(FILE *fp) { int retval; FLOCKFILE(fp); - ORIENT(fp, -1); + /* Orientation set by __sgetc() when buffer is empty. */ + /* ORIENT(fp, -1); */ retval = __sgetc(fp); FUNLOCKFILE(fp); return (retval); -- cgit v1.1