=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/systat/malloc.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- src/usr.bin/systat/malloc.c 2015/01/16 00:03:37 1.3 +++ src/usr.bin/systat/malloc.c 2019/06/28 13:35:04 1.4 @@ -1,4 +1,4 @@ -/* $OpenBSD: malloc.c,v 1.3 2015/01/16 00:03:37 deraadt Exp $ */ +/* $OpenBSD: malloc.c,v 1.4 2019/06/28 13:35:04 deraadt Exp $ */ /* * Copyright (c) 2008 Can Erkin Acar * @@ -247,7 +247,7 @@ siz = sizeof(buf); num_buckets = 0; - if (sysctl(mib, 3, buf, &siz, NULL, 0) < 0) { + if (sysctl(mib, 3, buf, &siz, NULL, 0) == -1) { error("sysctl(kern.malloc.buckets): %s", strerror(errno)); return (-1); } @@ -266,7 +266,7 @@ } mib[3] = bucket_sizes[num_buckets]; if (sysctl(mib, 4, &buckets[num_buckets], &siz, - NULL, 0) < 0) { + NULL, 0) == -1) { error("sysctl(kern.malloc.bucket.%d): %s", mib[3], strerror(errno)); return (-1); @@ -300,7 +300,7 @@ * Skip errors -- these are presumed to be unallocated * entries. */ - if (sysctl(mib, 4, &ti->stats, &siz, NULL, 0) < 0) + if (sysctl(mib, 4, &ti->stats, &siz, NULL, 0) == -1) continue; if (ti->stats.ks_calls == 0)