diff options
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/linux-low.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 4c29316..f9152c7 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"); |