OSDN Git Service

2002-02-20 Daniel Jacobowitz <drow@mvista.com>
authordrow <drow>
Wed, 20 Feb 2002 22:58:56 +0000 (22:58 +0000)
committerdrow <drow>
Wed, 20 Feb 2002 22:58:56 +0000 (22:58 +0000)
        * gdbserver/linux-low.c (mywait): Change argument to waitpid
        to be an integer instead of a `union wait'.

gdb/ChangeLog
gdb/gdbserver/linux-low.c

index 8d2fcd7..295c0e1 100644 (file)
@@ -1,5 +1,10 @@
 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
 
+       * gdbserver/linux-low.c (mywait): Change argument to waitpid
+       to be an integer instead of a `union wait'.
+
+2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
+
        * mips-linux-nat.c: Call the operating system GNU/Linux.
        * mips-linux-tdep.c: Likewise.
        * mips-tdep.c: Likewise.
index 4c29316..f9152c7 100644 (file)
@@ -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");