Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: gdb-patches@sources.redhat.com
Subject: [PATCH] Kill a warning in linux-low.c
Date: Tue, 05 Feb 2002 14:13:00 -0000	[thread overview]
Message-ID: <20020205171348.A11392@nevyn.them.org> (raw)

Waitpid's second argument is an (int *), not a (union wait *).  Committed as
obvious.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer

Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/ChangeLog,v
retrieving revision 1.2140
diff -u -p -r1.2140 ChangeLog
--- ChangeLog	2002/02/05 22:01:48	1.2140
+++ ChangeLog	2002/02/05 22:03:57
@@ -1,5 +1,10 @@
 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
 
+	* gdbserver/linux-low.c (mywait): Cast second argument of waitpid
+	to (int *).
+
+2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
+
 	* gdbserver/linux-low.c (kill_inferior): Remove commented out
 	code.
 
Index: gdbserver/linux-low.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/linux-low.c,v
retrieving revision 1.5
diff -u -p -r1.5 linux-low.c
--- linux-low.c	2002/02/05 22:01:49	1.5
+++ linux-low.c	2002/02/05 22:03:57
@@ -119,7 +119,7 @@ mywait (char *status)
   union wait w;
 
   enable_async_io ();
-  pid = waitpid (inferior_pid, &w, 0);
+  pid = waitpid (inferior_pid, (int *)&w, 0);
   disable_async_io ();
   if (pid != inferior_pid)
     perror_with_name ("wait");


             reply	other threads:[~2002-02-05 22:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-05 14:13 Daniel Jacobowitz [this message]
2002-02-06  4:26 ` Andreas Schwab
2002-02-06  7:21   ` Daniel Jacobowitz
2002-02-20 14:57     ` Daniel Jacobowitz

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=20020205171348.A11392@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=gdb-patches@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