summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bin/ps/nlist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ps/nlist.c b/bin/ps/nlist.c
index e97279e..19acfb8 100644
--- a/bin/ps/nlist.c
+++ b/bin/ps/nlist.c
@@ -59,13 +59,13 @@ donlist(void)
size_t oldlen;
oldlen = sizeof(ccpu);
- if (sysctlbyname("kern.ccpu", &ccpu, &oldlen, NULL, 0) < 0)
+ if (sysctlbyname("kern.ccpu", &ccpu, &oldlen, NULL, 0) == -1)
return (1);
oldlen = sizeof(fscale);
- if (sysctlbyname("kern.fscale", &fscale, &oldlen, NULL, 0) < 0)
+ if (sysctlbyname("kern.fscale", &fscale, &oldlen, NULL, 0) == -1)
return (1);
oldlen = sizeof(mempages);
- if (sysctlbyname("hw.availpages", &mempages, &oldlen, NULL, 0) < 0)
+ if (sysctlbyname("hw.availpages", &mempages, &oldlen, NULL, 0) == -1)
return (1);
nlistread = 1;
return (0);
OpenPOWER on IntegriCloud