summaryrefslogtreecommitdiffstats
path: root/bin/ps/ps.c
diff options
context:
space:
mode:
authorgad <gad@FreeBSD.org>2004-03-29 01:18:13 +0000
committergad <gad@FreeBSD.org>2004-03-29 01:18:13 +0000
commitf23f565e5eb424f9c127d6ae795d6d9178119dea (patch)
tree0999213d7bade32a8f76512a84b0c516b212e80d /bin/ps/ps.c
parent64d9ca553353323cbd878190319487dc1aa40ca2 (diff)
downloadFreeBSD-src-f23f565e5eb424f9c127d6ae795d6d9178119dea.zip
FreeBSD-src-f23f565e5eb424f9c127d6ae795d6d9178119dea.tar.gz
Since "kp" is a pointer, I should be comparing against NULL not 0.
Noticed by: bde
Diffstat (limited to 'bin/ps/ps.c')
-rw-r--r--bin/ps/ps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ps/ps.c b/bin/ps/ps.c
index 659ca29..cd9d296 100644
--- a/bin/ps/ps.c
+++ b/bin/ps/ps.c
@@ -507,7 +507,7 @@ main(int argc, char *argv[])
*/
nentries = -1;
kp = kvm_getprocs(kd, what, flag, &nentries);
- if ((kp == 0 && nentries > 0) || (kp != 0 && nentries < 0))
+ if ((kp == NULL && nentries > 0) || (kp != NULL && nentries < 0))
errx(1, "%s", kvm_geterr(kd));
nkept = 0;
if (nentries > 0) {
OpenPOWER on IntegriCloud