Warning patrol in iofdopen.c

Andreas Jaeger aj@suse.de
Sun Mar 17 01:20:00 GMT 2002


The appended patch fixes:
iofdopen.c:135: warning: passing arg 1 of `_IO_setb' from incompatible pointer type
iofdopen.c:135: warning: passing arg 1 of `_IO_setb_internal' from incompatible pointer type

Ok to commit?
Andreas

2002-03-17  Andreas Jaeger  <aj@suse.de>

	* libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
	type to _IO_setb.


============================================================
Index: libio/iofdopen.c
--- libio/iofdopen.c	16 Mar 2002 03:58:05 -0000	1.20
+++ libio/iofdopen.c	17 Mar 2002 09:00:38 -0000
@@ -132,7 +132,7 @@ _IO_new_fdopen (fd, mode)
 #endif
   if (INTUSE(_IO_file_attach) ((_IO_FILE *) &new_f->fp, fd) == NULL)
     {
-      INTUSE(_IO_setb) (&new_f->fp, NULL, NULL, 0);
+      INTUSE(_IO_setb) (&new_f->fp.file, NULL, NULL, 0);
       INTUSE(_IO_un_link) (&new_f->fp);
       free (new_f);
       return NULL;

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 231 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-hacker/attachments/20020317/a0b6b1ef/attachment.sig>


More information about the Libc-hacker mailing list