From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18065 invoked by alias); 5 Feb 2002 22:13:57 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 17930 invoked from network); 5 Feb 2002 22:13:48 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sources.redhat.com with SMTP; 5 Feb 2002 22:13:48 -0000 Received: from drow by nevyn.them.org with local (Exim 3.34 #1 (Debian)) id 16YDqW-00037d-00 for ; Tue, 05 Feb 2002 17:13:48 -0500 Date: Tue, 05 Feb 2002 14:13:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sources.redhat.com Subject: [PATCH] Kill a warning in linux-low.c Message-ID: <20020205171348.A11392@nevyn.them.org> Mail-Followup-To: gdb-patches@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.23i X-SW-Source: 2002-02/txt/msg00134.txt.bz2 Waitpid's second argument is an (int *), not a (union wait *). Committed as obvious. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer Index: ChangeLog =================================================================== RCS file: /cvs/src/src/gdb/ChangeLog,v retrieving revision 1.2140 diff -u -p -r1.2140 ChangeLog --- ChangeLog 2002/02/05 22:01:48 1.2140 +++ ChangeLog 2002/02/05 22:03:57 @@ -1,5 +1,10 @@ 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 code. Index: gdbserver/linux-low.c =================================================================== RCS file: /cvs/src/src/gdb/gdbserver/linux-low.c,v retrieving revision 1.5 diff -u -p -r1.5 linux-low.c --- linux-low.c 2002/02/05 22:01:49 1.5 +++ linux-low.c 2002/02/05 22:03:57 @@ -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");