2002-02-05 Daniel Jacobowitz <drow@mvista.com>

* gdbserver/linux-low.c (mywait): Cast second argument of waitpid
        to (int *).
This commit is contained in:
Daniel Jacobowitz 2002-02-05 22:14:09 +00:00
parent 6b2725be39
commit e18651ecb3
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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");