about summary refs log tree commit diff
path: root/libio/iofdopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/iofdopen.c')
-rw-r--r--libio/iofdopen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libio/iofdopen.c b/libio/iofdopen.c
index 44be50a37d..40419bd267 100644
--- a/libio/iofdopen.c
+++ b/libio/iofdopen.c
@@ -130,7 +130,7 @@ _IO_new_fdopen (fd, mode)
     _IO_mask_flags (&new_f->fp.file, read_write,
 		    _IO_NO_READS+_IO_NO_WRITES+_IO_IS_APPENDING);
 
-  return (_IO_FILE *) &new_f->fp;
+  return &new_f->fp.file;
 }
 
 #if defined PIC && DO_VERSIONING