aboutsummaryrefslogtreecommitdiff
path: root/posix
diff options
context:
space:
mode:
Diffstat (limited to 'posix')
-rw-r--r--posix/test-vfork.c3
-rw-r--r--posix/testfnm.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/posix/test-vfork.c b/posix/test-vfork.c
index 66c17c3d90..dd2b1c7727 100644
--- a/posix/test-vfork.c
+++ b/posix/test-vfork.c
@@ -32,7 +32,8 @@ main (void)
if (waitpid (0, &status, 0) != pid
|| !WIFEXITED (status) || WEXITSTATUS (status) != NR)
exit (1);
- exit (0);
+
+ return 0;
}
void
diff --git a/posix/testfnm.c b/posix/testfnm.c
index a8b85c56ad..b735a26579 100644
--- a/posix/testfnm.c
+++ b/posix/testfnm.c
@@ -77,5 +77,5 @@ main (void)
++errors ;
}
- exit (errors != 0);
+ return errors != 0;
}