Change return type to bool.
Change-Id: I1bf0360bfdd1b5994cd0f96c268d806f96fe51a4
/* See linux-nat.h. */
-int
+bool
linux_nat_get_siginfo (ptid_t ptid, siginfo_t *siginfo)
{
int pid = get_ptrace_pid (ptid);
if (errno != 0)
{
memset (siginfo, 0, sizeof (*siginfo));
- return 0;
+ return false;
}
- return 1;
+ return true;
}
/* See nat/linux-nat.h. */
void linux_nat_switch_fork (ptid_t new_ptid);
/* Store the saved siginfo associated with PTID in *SIGINFO.
- Return 1 if it was retrieved successfully, 0 otherwise (*SIGINFO is
+ Return true if it was retrieved successfully, false otherwise (*SIGINFO is
uninitialized in such case). */
-int linux_nat_get_siginfo (ptid_t ptid, siginfo_t *siginfo);
+bool linux_nat_get_siginfo (ptid_t ptid, siginfo_t *siginfo);
#endif /* LINUX_NAT_H */