diff options
author | Tim J. Robbins <tjr@FreeBSD.org> | 2004-03-19 09:04:56 +0000 |
---|---|---|
committer | Tim J. Robbins <tjr@FreeBSD.org> | 2004-03-19 09:04:56 +0000 |
commit | f639538c2065380d46a0f35ef2c318271e53909c (patch) | |
tree | d8d5f7746a3cceade3bbd131a89c369c2bc86f57 /lib/libc/stdio/fgetc.c | |
parent | 9db42b4960bd32f236c802d2f6360a88d19f30f4 (diff) | |
download | src-f639538c2065380d46a0f35ef2c318271e53909c.tar.gz src-f639538c2065380d46a0f35ef2c318271e53909c.zip |
Do not redundantly set the stream orientation in getc(), putc(), and
related functions - __sgetc() and __sputc() will set it when necessary.
Notes
Notes:
svn path=/head/; revision=127198
Diffstat (limited to 'lib/libc/stdio/fgetc.c')
-rw-r--r-- | lib/libc/stdio/fgetc.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |