diff options
author | tjr <tjr@FreeBSD.org> | 2004-03-19 09:04:56 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2004-03-19 09:04:56 +0000 |
commit | b893e6c496141ad1b9c9ac7424743d98fc89da5e (patch) | |
tree | d8d5f7746a3cceade3bbd131a89c369c2bc86f57 /lib/libc/stdio/getchar.c | |
parent | 9efe31118956f24f0fc12006dd24116af5c3b174 (diff) | |
download | FreeBSD-src-b893e6c496141ad1b9c9ac7424743d98fc89da5e.zip FreeBSD-src-b893e6c496141ad1b9c9ac7424743d98fc89da5e.tar.gz |
Do not redundantly set the stream orientation in getc(), putc(), and
related functions - __sgetc() and __sputc() will set it when necessary.
Diffstat (limited to 'lib/libc/stdio/getchar.c')
-rw-r--r-- | lib/libc/stdio/getchar.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/stdio/getchar.c b/lib/libc/stdio/getchar.c index 47f46a2..baf5876 100644 --- a/lib/libc/stdio/getchar.c +++ b/lib/libc/stdio/getchar.c @@ -56,7 +56,8 @@ getchar() { int retval; FLOCKFILE(stdin); - ORIENT(stdin, -1); + /* Orientation set by __sgetc() when buffer is empty. */ + /* ORIENT(stdin, -1); */ retval = __sgetc(stdin); FUNLOCKFILE(stdin); return (retval); |