From: Daniel Jacobowitz Date: Wed, 20 Feb 2002 22:58:57 +0000 (+0000) Subject: 2002-02-20 Daniel Jacobowitz X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e5f1222d6b4da41406c7853e76a183e41db7d06f;p=binutils-gdb.git 2002-02-20 Daniel Jacobowitz * gdbserver/linux-low.c (mywait): Change argument to waitpid to be an integer instead of a `union wait'. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8d2fcd762a4..295c0e1778d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-02-20 Daniel Jacobowitz + + * gdbserver/linux-low.c (mywait): Change argument to waitpid + to be an integer instead of a `union wait'. + 2002-02-20 Daniel Jacobowitz * mips-linux-nat.c: Call the operating system GNU/Linux. diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 4c293165730..f9152c7ea3c 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -109,10 +109,10 @@ unsigned char mywait (char *status) { int pid; - union wait w; + int w; enable_async_io (); - pid = waitpid (inferior_pid, (int *)&w, 0); + pid = waitpid (inferior_pid, &w, 0); disable_async_io (); if (pid != inferior_pid) perror_with_name ("wait");