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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user