From 84aeea7e29badf767d9f253c60b8e39f3bd6de80 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Thu, 21 Apr 2016 21:06:13 +0000 Subject: [PATCH] tests/mlockall.c: cleanup --- tests/mlockall.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/mlockall.c b/tests/mlockall.c index 2a27ce45..10c86676 100644 --- a/tests/mlockall.c +++ b/tests/mlockall.c @@ -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; -- 2.50.1