Skip to content

Commit

Permalink
test: fix signed vs unsigned comparison
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
  • Loading branch information
troglobit committed Dec 17, 2022
1 parent 3c3b37c commit 270e270
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ static void sig_cb(uev_t *w, void *cbarg, int events)
break;

case SIGCHLD:
if (arg->pid != w->siginfo.ssi_pid)
if (arg->pid != (pid_t)w->siginfo.ssi_pid)
err(1, "wrong child exited pid %d vs ssi_pid %d",
arg->pid, w->siginfo.ssi_pid);

Expand Down

0 comments on commit 270e270

Please # to comment.