summaryrefslogtreecommitdiff
path: root/libio/oldiofopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/oldiofopen.c')
-rw-r--r--libio/oldiofopen.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libio/oldiofopen.c b/libio/oldiofopen.c
index 085267b1d3..f9b336dd25 100644
--- a/libio/oldiofopen.c
+++ b/libio/oldiofopen.c
@@ -38,7 +38,7 @@ _IO_old_fopen (const char *filename, const char *mode)
{
struct locked_FILE
{
- struct _IO_FILE_complete_plus fp;
+ struct _IO_FILE_plus fp;
#ifdef _IO_MTSAFE_IO
_IO_lock_t lock;
#endif
@@ -47,17 +47,17 @@ _IO_old_fopen (const char *filename, const char *mode)
if (new_f == NULL)
return NULL;
#ifdef _IO_MTSAFE_IO
- new_f->fp.file._file._lock = &new_f->lock;
+ new_f->fp.file._lock = &new_f->lock;
#endif
- _IO_old_init (&new_f->fp.file._file, 0);
+ _IO_old_init (&new_f->fp.file, 0);
_IO_JUMPS_FILE_plus (&new_f->fp) = &_IO_old_file_jumps;
- _IO_old_file_init_internal ((struct _IO_FILE_plus *) &new_f->fp);
+ _IO_old_file_init_internal ((struct _IO_FILE_old_plus *) &new_f->fp);
#if !_IO_UNIFIED_JUMPTABLES
new_f->fp.vtable = NULL;
#endif
if (_IO_old_file_fopen ((_IO_FILE *) &new_f->fp, filename, mode) != NULL)
return (_IO_FILE *) &new_f->fp;
- _IO_un_link ((struct _IO_FILE_plus *) &new_f->fp);
+ _IO_un_link (&new_f->fp);
free (new_f);
return NULL;
}