aboutsummaryrefslogtreecommitdiff
path: root/libio
diff options
context:
space:
mode:
Diffstat (limited to 'libio')
-rw-r--r--libio/iosetbuffer.c2
-rw-r--r--libio/iosetvbuf.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/libio/iosetbuffer.c b/libio/iosetbuffer.c
index 5acbf5e812..852a2dd36c 100644
--- a/libio/iosetbuffer.c
+++ b/libio/iosetbuffer.c
@@ -40,7 +40,7 @@ _IO_setbuffer (fp, buf, size)
(void) _IO_SETBUF (fp, buf, size);
if (fp->_vtable_offset == 0 && fp->_mode == 0)
/* We also have to set the buffer using the wide char function. */
- (*fp->_wide_data->_wide_vtable->__setbuf) (fp, buf, size);
+ (void) _IO_WSETBUF (fp, buf, size);
_IO_funlockfile (fp);
_IO_cleanup_region_end (0);
}
diff --git a/libio/iosetvbuf.c b/libio/iosetvbuf.c
index f63a3c2174..a0287a3ee5 100644
--- a/libio/iosetvbuf.c
+++ b/libio/iosetvbuf.c
@@ -92,8 +92,8 @@ _IO_setvbuf (fp, buf, mode, size)
result = _IO_SETBUF (fp, buf, size) == NULL ? EOF : 0;
if (result == 0 && fp->_vtable_offset == 0 && fp->_mode == 0)
/* We also have to set the buffer using the wide char function. */
- result = ((*fp->_wide_data->_wide_vtable->__setbuf) (fp, buf, size) == NULL
- ? EOF : 0);
+ result = _IO_WSETBUF (fp, buf, size) == NULL ? EOF : 0;
+
unlock_return:
_IO_funlockfile (fp);
_IO_cleanup_region_end (0);