From f23f565e5eb424f9c127d6ae795d6d9178119dea Mon Sep 17 00:00:00 2001 From: gad Date: Mon, 29 Mar 2004 01:18:13 +0000 Subject: Since "kp" is a pointer, I should be comparing against NULL not 0. Noticed by: bde --- bin/ps/ps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/ps') 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) { -- cgit v1.1