From patchwork Fri Jul 1 17:21:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Baldwin X-Patchwork-Id: 13552 Received: (qmail 34988 invoked by alias); 1 Jul 2016 17:22:38 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 34979 invoked by uid 89); 1 Jul 2016 17:22:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, SPF_SOFTFAIL autolearn=no version=3.3.2 spammy= X-HELO: bigwig.baldwin.cx Received: from bigwig.baldwin.cx (HELO bigwig.baldwin.cx) (96.47.65.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Fri, 01 Jul 2016 17:22:36 +0000 Received: from ralph.com (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 999FCB96E for ; Fri, 1 Jul 2016 13:22:33 -0400 (EDT) From: John Baldwin To: gdb-patches@sourceware.org Subject: [PATCH] Use 'ptid_t' instead of 'ptid' for fbsd_next_vfork_done's return type. Date: Fri, 1 Jul 2016 10:21:41 -0700 Message-Id: <20160701172141.90250-1-jhb@FreeBSD.org> X-IsSubscribed: yes 'ptid' compiles in C++, but not C. gdb/ChangeLog: * fbsd-nat.c (fbsd_is_vfork_done_pending): Fix return type. --- gdb/ChangeLog | 4 ++++ gdb/fbsd-nat.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 58c9c78..e959c8c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2016-07-01 John Baldwin + * fbsd-nat.c (fbsd_is_vfork_done_pending): Fix return type. + +2016-07-01 John Baldwin + * fbsd-nat.c (struct fbsd_fork_child_info): Rename to ... (struct fbsd_fork_info): ... this. (struct fbsd_fork_info) : Rename to ... diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c index fcb7ff5..fa9516e 100644 --- a/gdb/fbsd-nat.c +++ b/gdb/fbsd-nat.c @@ -609,7 +609,7 @@ fbsd_is_vfork_done_pending (pid_t pid) /* Check for a pending vfork done event. If one is found, remove it from the list and return the PTID. */ -static ptid +static ptid_t fbsd_next_vfork_done (void) { struct fbsd_fork_info *info;