From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27479 invoked by alias); 5 Dec 2002 23:22:19 -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 26686 invoked from network); 5 Dec 2002 23:20:38 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 5 Dec 2002 23:20:38 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id gB5MtRP08722 for ; Thu, 5 Dec 2002 17:55:27 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id gB5NKbD17808 for ; Thu, 5 Dec 2002 18:20:37 -0500 Received: from localhost.localdomain (vpn50-49.rdu.redhat.com [172.16.50.49]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id gB5NKa924947 for ; Thu, 5 Dec 2002 18:20:36 -0500 Received: (from kev@localhost) by localhost.localdomain (8.11.6/8.11.6) id gB5NKVt17207 for gdb-patches@sources.redhat.com; Thu, 5 Dec 2002 16:20:31 -0700 Date: Thu, 05 Dec 2002 15:25:00 -0000 From: Kevin Buettner Message-Id: <1021205232031.ZM17206@localhost.localdomain> To: gdb-patches@sources.redhat.com Subject: [RFA] lin-lwp.c: Remove ``const'' from strsignal() declaration MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-12/txt/msg00204.txt.bz2 As noted in gdb@, I was seeing a conflict between the declarations of strsignal() in lin-lwp.c and in . The patch below is one way of fixing the problem. Okay to commit? * lin-lwp.c (strsignal): Make extern declaration match that of glibc. Index: lin-lwp.c =================================================================== RCS file: /cvs/src/src/gdb/lin-lwp.c,v retrieving revision 1.38 diff -u -p -r1.38 lin-lwp.c --- lin-lwp.c 4 Dec 2002 03:20:29 -0000 1.38 +++ lin-lwp.c 5 Dec 2002 23:15:40 -0000 @@ -34,7 +34,7 @@ #include "gdbcmd.h" static int debug_lin_lwp; -extern const char *strsignal (int sig); +extern char *strsignal (int sig); /* On GNU/Linux there are no real LWP's. The closest thing to LWP's are processes sharing the same VM space. A multi-threaded process