summaryrefslogtreecommitdiff
path: root/pr/tests/forktest.c
diff options
context:
space:
mode:
Diffstat (limited to 'pr/tests/forktest.c')
-rw-r--r--pr/tests/forktest.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pr/tests/forktest.c b/pr/tests/forktest.c
index 7de18524..a6d4bc4b 100644
--- a/pr/tests/forktest.c
+++ b/pr/tests/forktest.c
@@ -199,7 +199,6 @@ finish:
int main(int argc, char **argv)
{
pid_t pid;
- int rv;
/* main test program */
@@ -216,7 +215,7 @@ int main(int argc, char **argv)
printf("Fork succeeded. Parent process continues.\n");
DoIO();
- if ((rv = waitpid(pid, &childStatus, 0)) != pid) {
+ if (waitpid(pid, &childStatus, 0) != pid) {
{
fprintf(stderr, "waitpid failed: %d\n", errno);
failed_already = 1;