aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2002-02-05 22:14:09 +0000
committerDaniel Jacobowitz <drow@false.org>2002-02-05 22:14:09 +0000
commite18651ecb3a42f0996e488366b69e6a8b2d660a1 (patch)
tree1a88d2eb4537d2f8502113f103b1f7832873c84b /gdb
parent6b2725be3958d540c33dce134499521dda0c7a48 (diff)
downloadgdb-e18651ecb3a42f0996e488366b69e6a8b2d660a1.zip
gdb-e18651ecb3a42f0996e488366b69e6a8b2d660a1.tar.gz
gdb-e18651ecb3a42f0996e488366b69e6a8b2d660a1.tar.bz2
2002-02-05 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/linux-low.c (mywait): Cast second argument of waitpid to (int *).
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/gdbserver/linux-low.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c56a6b3..c24a685 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index 2aa0fe5..368c3f2 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -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");