aboutsummaryrefslogtreecommitdiff
path: root/libio/oldiofopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/oldiofopen.c')
-rw-r--r--libio/oldiofopen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libio/oldiofopen.c b/libio/oldiofopen.c
index 5dffae8..7fc48b9 100644
--- a/libio/oldiofopen.c
+++ b/libio/oldiofopen.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1997, 1999 Free Software Foundation, Inc.
This file is part of the GNU IO Library.
This library is free software; you can redistribute it and/or
@@ -55,7 +55,7 @@ _IO_old_fopen (filename, mode)
new_f->fp.vtable = NULL;
#endif
if (_IO_old_file_fopen (&new_f->fp.file, filename, mode) != NULL)
- return (_IO_FILE *) &new_f->fp;
+ return &new_f->fp.file;
_IO_un_link (&new_f->fp.file);
free (new_f);
return NULL;