summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/putc.c
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-03-19 09:04:56 +0000
committertjr <tjr@FreeBSD.org>2004-03-19 09:04:56 +0000
commitb893e6c496141ad1b9c9ac7424743d98fc89da5e (patch)
treed8d5f7746a3cceade3bbd131a89c369c2bc86f57 /lib/libc/stdio/putc.c
parent9efe31118956f24f0fc12006dd24116af5c3b174 (diff)
downloadFreeBSD-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/putc.c')
-rw-r--r--lib/libc/stdio/putc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/stdio/putc.c b/lib/libc/stdio/putc.c
index b42f878..864df9f 100644
--- a/lib/libc/stdio/putc.c
+++ b/lib/libc/stdio/putc.c
@@ -55,7 +55,8 @@ putc(c, fp)
{
int retval;
FLOCKFILE(fp);
- ORIENT(fp, -1);
+ /* Orientation set by __sputc() when buffer is full. */
+ /* ORIENT(fp, -1); */
retval = __sputc(c, fp);
FUNLOCKFILE(fp);
return (retval);
OpenPOWER on IntegriCloud