public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
From: Andreas Jaeger <aj@suse.de>
To: GNU libc hacker <libc-hacker@sources.redhat.com>
Subject: Warning patrol in iofdopen.c
Date: Sun, 17 Mar 2002 01:20:00 -0000	[thread overview]
Message-ID: <u8wuwbmupp.fsf@gromit.moeb> (raw)

[-- 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 --]

             reply	other threads:[~2002-03-17  9:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-17  1:20 Andreas Jaeger [this message]
2002-03-17  1:54 ` Ulrich Drepper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=u8wuwbmupp.fsf@gromit.moeb \
    --to=aj@suse.de \
    --cc=libc-hacker@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).