From: Aaron Marcher Date: Sun, 20 May 2018 22:29:54 +0000 (+0200) Subject: Increase readability for load_uvmexp return X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=bae576cd221ef8f30195d6927cf935a797ac5a02;p=suckless%2Fslstatus.git 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 @@ -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 *