From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28878 invoked by alias); 21 Oct 2012 02:59:22 -0000 Received: (qmail 28863 invoked by uid 22791); 21 Oct 2012 02:59:20 -0000 X-SWARE-Spam-Status: No, hits=-4.5 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 21 Oct 2012 02:59:15 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1TPlkx-0003Ag-Ab from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Sat, 20 Oct 2012 19:59:15 -0700 Received: from SVR-ORW-FEM-05.mgc.mentorg.com ([147.34.97.43]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Sat, 20 Oct 2012 19:59:15 -0700 Received: from qiyao.dyndns.org.com (147.34.91.1) by svr-orw-fem-05.mgc.mentorg.com (147.34.97.43) with Microsoft SMTP Server id 14.1.289.1; Sat, 20 Oct 2012 19:59:14 -0700 From: Yao Qi To: Subject: [PATCH 1/2] Correct the type of sigFOO_token Date: Sun, 21 Oct 2012 02:59:00 -0000 Message-ID: <1350788330-7135-2-git-send-email-yao@codesourcery.com> In-Reply-To: <1350788330-7135-1-git-send-email-yao@codesourcery.com> References: <1350788330-7135-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-10/txt/msg00376.txt.bz2 Hi, These signal tokens can be defined in type 'struct async_signal_handler *' instead of 'void *'. This patch is do this. gdb: 2012-10-21 Yao Qi * event-top.c (sigint_token, sighup_token): Replace 'void *' with 'static struct async_signal_handler *'. (sighup_token, sigquit_token, sigstp_token): Likewise. --- gdb/event-top.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gdb/event-top.c b/gdb/event-top.c index 4f3363c..1e0626a 100644 --- a/gdb/event-top.c +++ b/gdb/event-top.c @@ -123,16 +123,16 @@ int input_fd; handlers mark these functions as ready to be executed and the event loop, in a later iteration, calls them. See the function invoke_async_signal_handler. */ -void *sigint_token; +static struct async_signal_handler *sigint_token; #ifdef SIGHUP -void *sighup_token; +static struct async_signal_handler *sighup_token; #endif #ifdef SIGQUIT -void *sigquit_token; +static struct async_signal_handler *sigquit_token; #endif -void *sigfpe_token; +static struct async_signal_handler *sigfpe_token; #ifdef STOP_SIGNAL -void *sigtstp_token; +static struct async_signal_handler *sigtstp_token; #endif /* Structure to save a partially entered command. This is used when -- 1.7.7.6