From e18651ecb3a42f0996e488366b69e6a8b2d660a1 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Tue, 5 Feb 2002 22:14:09 +0000 Subject: [PATCH] 2002-02-05 Daniel Jacobowitz * gdbserver/linux-low.c (mywait): Cast second argument of waitpid to (int *). --- gdb/ChangeLog | 5 +++++ gdb/gdbserver/linux-low.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c56a6b3404a..c24a685a45b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-02-05 Daniel Jacobowitz + + * gdbserver/linux-low.c (mywait): Cast second argument of waitpid + to (int *). + 2002-02-05 Daniel Jacobowitz * gdbserver/linux-low.c (kill_inferior): Remove commented out diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 2aa0fe5a863..368c3f226c0 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"); -- 2.30.2