From ec23a7636074b3e5129e6464fc88f16de97bc677 Mon Sep 17 00:00:00 2001 From: Marcelo Araujo Date: Tue, 19 Apr 2016 00:40:43 +0000 Subject: Use NULL instead of 0 for pointers. kvm_open(3) will return NULL when it cannot access kernel virtual memory. MFC after: 2 weeks. --- bin/ps/ps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/ps/ps.c') diff --git a/bin/ps/ps.c b/bin/ps/ps.c index e86cfa8b42ff..eeaa9c8058e5 100644 --- a/bin/ps/ps.c +++ b/bin/ps/ps.c @@ -451,7 +451,7 @@ main(int argc, char *argv[]) xkeep = xkeep_implied; kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf); - if (kd == 0) + if (kd == NULL) xo_errx(1, "%s", errbuf); if (!_fmt) -- cgit v1.2.3