[hackers] [slstatus] Increase readability for load_uvmexp return || Aaron Marcher

From: <git_AT_suckless.org>
Date: Mon, 21 May 2018 00:30:27 +0200 (CEST)

commit bae576cd221ef8f30195d6927cf935a797ac5a02
Author: Aaron Marcher <me_AT_drkhsh.at>
AuthorDate: Mon May 21 00:29:54 2018 +0200
Commit: Aaron Marcher <me_AT_drkhsh.at>
CommitDate: Mon May 21 00:29:54 2018 +0200

    Increase readability for load_uvmexp return

diff --git a/components/ram.c b/components/ram.c
index f653156..cba22a1 100644
--- a/components/ram.c
+++ b/components/ram.c
_AT_@ -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 *
Received on Mon May 21 2018 - 00:30:27 CEST

This archive was generated by hypermail 2.3.0 : Mon May 21 2018 - 00:36:24 CEST