summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/fwide.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio/fwide.c')
-rw-r--r--lib/libc/stdio/fwide.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdio/fwide.c b/lib/libc/stdio/fwide.c
index 70309f5..c94ffe6 100644
--- a/lib/libc/stdio/fwide.c
+++ b/lib/libc/stdio/fwide.c
@@ -42,9 +42,9 @@ fwide(FILE *fp, int mode)
FLOCKFILE(fp);
/* Only change the orientation if the stream is not oriented yet. */
- if (mode != 0 && fp->_extra->orientation == 0)
- fp->_extra->orientation = mode > 0 ? 1 : -1;
- m = fp->_extra->orientation;
+ if (mode != 0 && fp->_orientation == 0)
+ fp->_orientation = mode > 0 ? 1 : -1;
+ m = fp->_orientation;
FUNLOCKFILE(fp);
return (m);
OpenPOWER on IntegriCloud