Xinqi Bao's Git

Increase readability for load_uvmexp return
[slstatus.git] / components / ram.c
index f653156..cba22a1 100644 (file)
 
                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 *