From e69dcccbcb53b2c0f3fbe3f6c3e04aadae7e9265 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 18 May 2015 13:58:54 +0200 Subject: Avoid some aliasing violations in libio --- libio/iofopen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libio/iofopen.c') diff --git a/libio/iofopen.c b/libio/iofopen.c index c427ffb2d1..be2bbb663b 100644 --- a/libio/iofopen.c +++ b/libio/iofopen.c @@ -46,9 +46,9 @@ __fopen_maybe_mmap (_IO_FILE *fp) vanilla file operations and reset the jump table accordingly. */ if (fp->_mode <= 0) - _IO_JUMPS ((struct _IO_FILE_plus *) fp) = &_IO_file_jumps_maybe_mmap; + _IO_JUMPS_FILE_plus (fp) = &_IO_file_jumps_maybe_mmap; else - _IO_JUMPS ((struct _IO_FILE_plus *) fp) = &_IO_wfile_jumps_maybe_mmap; + _IO_JUMPS_FILE_plus (fp) = &_IO_wfile_jumps_maybe_mmap; fp->_wide_data->_wide_vtable = &_IO_wfile_jumps_maybe_mmap; } #endif -- cgit v1.2.3