diff mbox

Use 'ptid_t' instead of 'ptid' for fbsd_next_vfork_done's return type.

Message ID 20160701172141.90250-1-jhb@FreeBSD.org
State New
Headers show

Commit Message

John Baldwin July 1, 2016, 5:21 p.m. UTC
'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(-)

Comments

Yao Qi July 6, 2016, 8:16 a.m. UTC | #1
On Fri, Jul 1, 2016 at 6:21 PM, John Baldwin <jhb@freebsd.org> wrote:
> 'ptid' compiles in C++, but not C.
>
> gdb/ChangeLog:
>         * fbsd-nat.c (fbsd_is_vfork_done_pending): Fix return type.

Patch is OK.  It is an obvious change.
diff mbox

Patch

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  <jhb@FreeBSD.org>
 
+	* fbsd-nat.c (fbsd_is_vfork_done_pending): Fix return type.
+
+2016-07-01  John Baldwin  <jhb@FreeBSD.org>
+
 	* fbsd-nat.c (struct fbsd_fork_child_info): Rename to ...
 	(struct fbsd_fork_info): ... this.
 	(struct fbsd_fork_info) <child>: 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;