From f639538c2065380d46a0f35ef2c318271e53909c Mon Sep 17 00:00:00 2001 From: "Tim J. Robbins" 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/fgetc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libc/stdio/fgetc.c') diff --git a/lib/libc/stdio/fgetc.c b/lib/libc/stdio/fgetc.c index 3469fda79d1c..455c2ac771f0 100644 --- a/lib/libc/stdio/fgetc.c +++ b/lib/libc/stdio/fgetc.c @@ -52,7 +52,8 @@ fgetc(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.2.3