summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Marcher <me@drkhsh.at>2018-05-21 00:29:54 +0200
committerAaron Marcher <me@drkhsh.at>2018-05-21 00:29:54 +0200
commitc200484294bc5204f57cd0bf907fd3204cff2c96 (patch)
tree95152bf9bc8e576adaa4fad6c5f9e24616a7c7f8
parent88c799755a8d8f4f923ec8c239d46506090399e3 (diff)
Increase readability for load_uvmexp return
-rw-r--r--components/ram.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/components/ram.c b/components/ram.c
index f653156..cba22a1 100644
--- a/components/ram.c
+++ b/components/ram.c
@@ -84,7 +84,11 @@
size = sizeof(*uvmexp);
- return sysctl(uvmexp_mib, 2, uvmexp, &size, NULL, 0) >= 0 ? 1 : 0;
+ if (sysctl(uvmexp_mib, 2, uvmexp, &size, NULL, 0) >= 0) {
+ return 1;
+ }
+
+ return 0;
}
const char *