tests/ptrace.c: fix fork() return value check

* tests/ptrace.c (test_peeksiginfo): Explicitly cast fork() return value
to pid_t.
This commit is contained in:
Elvira Khabirova
2016-06-06 02:39:59 +03:00
committed by Dmitry V. Levin
parent 2d2f0a7998
commit f6be7ae12c

View File

@ -72,7 +72,7 @@ test_peeksiginfo(unsigned long pid, const unsigned long bad_request)
(unsigned) pid, psi->off, psi->nr, bad_request, rc, errno2name());
pid = fork();
if (pid < 0)
if ((pid_t) pid < 0)
perror_msg_and_fail("fork");
if (!pid) {