summaryrefslogtreecommitdiff
path: root/libc/stdio2/stdio.c
diff options
context:
space:
mode:
authorRobert de Bath <rdebath@poboxes.com>1997-02-25 20:42:19 +0100
committerLubomir Rintel <lkundrak@v3.sk>2013-10-23 23:38:07 +0200
commit4c36e9a0c125ccfff37aa440dab2cf58c4152fff (patch)
treea5d9c84ba2661029ddb2223dacd50529a361c3d5 /libc/stdio2/stdio.c
parentf8de35da65c5d93bb733073cf40da154bc1c0748 (diff)
parent9696d7b0e1f3a1b0f5fd4a0428eb75afe8ad4ed6 (diff)
downloaddev86-0.0.11.tar.gz
Import Dev86src-0.0.11.tar.gzv0.0.11
Diffstat (limited to 'libc/stdio2/stdio.c')
-rw-r--r--libc/stdio2/stdio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/stdio2/stdio.c b/libc/stdio2/stdio.c
index bab246b..156d3e3 100644
--- a/libc/stdio2/stdio.c
+++ b/libc/stdio2/stdio.c
@@ -506,12 +506,12 @@ int ref;
{
/* Use fflush to sync the pointers */
-#if 0
+#if 1
/* if __MODE_READING and no ungetc ever done can just move pointer */
/* This needs testing! */
if ( (fp->mode &(__MODE_READING | __MODE_UNGOT)) == __MODE_READING &&
- ( ref == SEEK_SET || ref == SEEK_CUR )
+ ( ref == SEEK_SET || ref == SEEK_CUR ))
{
long fpos = lseek(fp->fd, 0L, SEEK_CUR);
if( fpos == -1 ) return EOF;