tests/mlockall.c: cleanup

This commit is contained in:
Дмитрий Левин 2016-04-21 21:06:13 +00:00
parent c0b1d6f37c
commit 84aeea7e29

View File

@ -38,12 +38,10 @@ main(void)
{
printf("mlockall(0) = %d EINVAL (%m)\n", mlockall(0));
if (mlockall(MCL_CURRENT) == 0) {
if (mlockall(MCL_CURRENT) == 0)
puts("mlockall(MCL_CURRENT) = 0");
} else {
printf("mlockall(MCL_CURRENT) = -1 %s (%m)\n",
errno2name());
}
else
printf("mlockall(MCL_CURRENT) = -1 %s (%m)\n", errno2name());
puts("+++ exited with 0 +++");
return 0;