about summary refs log tree commit diff
path: root/libio/iofopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/iofopen.c')
-rw-r--r--libio/iofopen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libio/iofopen.c b/libio/iofopen.c
index 05e047929d..e44423be6d 100644
--- a/libio/iofopen.c
+++ b/libio/iofopen.c
@@ -50,13 +50,13 @@ _IO_new_fopen (filename, mode)
 #endif
   _IO_no_init (&new_f->fp.file, 0, 0, &new_f->wd, &_IO_wfile_jumps);
   _IO_JUMPS (&new_f->fp) = &_IO_file_jumps;
-  _IO_file_init (&new_f->fp.file);
+  _IO_file_init (&new_f->fp);
 #if  !_IO_UNIFIED_JUMPTABLES
   new_f->fp.vtable = NULL;
 #endif
-  if (_IO_file_fopen (&new_f->fp.file, filename, mode, 1) != NULL)
+  if (_IO_file_fopen ((_IO_FILE *) new_f, filename, mode, 1) != NULL)
     return (_IO_FILE *) &new_f->fp;
-  _IO_un_link (&new_f->fp.file);
+  _IO_un_link (&new_f->fp);
   free (new_f);
   return NULL;
 }