summaryrefslogtreecommitdiff
path: root/libio/oldiofdopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/oldiofdopen.c')
-rw-r--r--libio/oldiofdopen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libio/oldiofdopen.c b/libio/oldiofdopen.c
index ed3a220e41..bf90c83f3d 100644
--- a/libio/oldiofdopen.c
+++ b/libio/oldiofdopen.c
@@ -114,13 +114,13 @@ _IO_old_fdopen (fd, mode)
#endif
_IO_init (&new_f->fp.file, 0);
_IO_JUMPS (&new_f->fp) = &_IO_old_file_jumps;
- _IO_old_file_init (&new_f->fp.file);
+ _IO_old_file_init (&new_f->fp);
#if !_IO_UNIFIED_JUMPTABLES
new_f->fp.vtable = NULL;
#endif
if (_IO_old_file_attach (&new_f->fp.file, fd) == NULL)
{
- _IO_un_link (&new_f->fp.file);
+ _IO_un_link (&new_f->fp);
free (new_f);
return NULL;
}
@@ -130,7 +130,7 @@ _IO_old_fdopen (fd, mode)
_IO_mask_flags (&new_f->fp.file, read_write,
_IO_NO_READS+_IO_NO_WRITES+_IO_IS_APPENDING);
- return &new_f->fp.file;
+ return (_IO_FILE *) &new_f->fp;
}
strong_alias (_IO_old_fdopen, __old_fdopen)