This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH: _IO_new_fdopen wants _IO_FILE_plus for BPs


No build regressions.  No non-BP binary changes.

OK?

2000-07-15  Greg McGary  <greg@mcgary.org>

	* libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
	_IO_file_attach.
	* libio/iovdprintf.c (_IO_vdprintf): Likewise.

Index: libio/iofdopen.c
===================================================================
RCS file: /cvs/glibc/libc/libio/iofdopen.c,v
retrieving revision 1.15
diff -u -p -r1.15 iofdopen.c
--- iofdopen.c	2000/06/29 07:16:41	1.15
+++ iofdopen.c	2000/07/16 05:35:31
@@ -128,7 +128,7 @@ _IO_new_fdopen (fd, mode)
 #if  !_IO_UNIFIED_JUMPTABLES
   new_f->fp.vtable = NULL;
 #endif
-  if (_IO_file_attach (&new_f->fp.file, fd) == NULL)
+  if (_IO_file_attach ((_IO_FILE *) &new_f->fp, fd) == NULL)
     {
       _IO_un_link (&new_f->fp);
       free (new_f);
Index: libio/iovdprintf.c
===================================================================
RCS file: /cvs/glibc/libc/libio/iovdprintf.c,v
retrieving revision 1.7
diff -u -p -r1.7 iovdprintf.c
--- iovdprintf.c	2000/06/29 07:16:41	1.7
+++ iovdprintf.c	2000/07/16 05:35:31
@@ -48,7 +48,7 @@ _IO_vdprintf (d, format, arg)
 #if  !_IO_UNIFIED_JUMPTABLES
   tmpfil.vtable = NULL;
 #endif
-  if (_IO_file_attach (&tmpfil.file, d) == NULL)
+  if (_IO_file_attach ((_IO_FILE *) &tmpfil, d) == NULL)
     {
       _IO_un_link (&tmpfil);
       return EOF;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]