public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* Warning patrol in iofdopen.c
@ 2002-03-17  1:20 Andreas Jaeger
  2002-03-17  1:54 ` Ulrich Drepper
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Jaeger @ 2002-03-17  1:20 UTC (permalink / raw)
  To: GNU libc hacker

[-- Attachment #1: Type: text/plain, Size: 998 bytes --]


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

[-- Attachment #2: Type: application/pgp-signature, Size: 231 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-03-17  9:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-17  1:20 Warning patrol in iofdopen.c Andreas Jaeger
2002-03-17  1:54 ` Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).