From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13072 invoked by alias); 2 Dec 2014 22:32:30 -0000 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 Received: (qmail 13058 invoked by uid 89); 2 Dec 2014 22:32:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-HELO: usevmg20.ericsson.net Received: from usevmg20.ericsson.net (HELO usevmg20.ericsson.net) (198.24.6.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 02 Dec 2014 22:32:28 +0000 Received: from EUSAAHC002.ericsson.se (Unknown_Domain [147.117.188.78]) by usevmg20.ericsson.net (Symantec Mail Security) with SMTP id 01.F6.03307.CFDED745; Tue, 2 Dec 2014 17:51:09 +0100 (CET) Received: from simark-hp.mo.ca.am.ericsson.se (147.117.188.8) by smtps-am.internal.ericsson.com (147.117.188.78) with Microsoft SMTP Server (TLS) id 14.3.195.1; Tue, 2 Dec 2014 17:32:25 -0500 From: Simon Marchi To: CC: Simon Marchi Subject: [PATCH] Fix make_cleanup_dtor signature to match declaration Date: Tue, 02 Dec 2014 22:32:00 -0000 Message-ID: <1417559541-32531-1-git-send-email-simon.marchi@ericsson.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg00040.txt.bz2 The definition does not use the typedef for the dtor function pointer type that the declaration uses. It's a cosmetic-only change. ChangeLog: * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor type. --- gdb/common/cleanups.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/common/cleanups.c b/gdb/common/cleanups.c index 80271fd..8678114 100644 --- a/gdb/common/cleanups.c +++ b/gdb/common/cleanups.c @@ -124,7 +124,7 @@ make_cleanup (make_cleanup_ftype *function, void *arg) struct cleanup * make_cleanup_dtor (make_cleanup_ftype *function, void *arg, - void (*dtor) (void *)) + make_cleanup_dtor_ftype *dtor) { return make_my_cleanup2 (&cleanup_chain, function, arg, dtor); -- 2.1.3