aboutsummaryrefslogtreecommitdiff
path: root/bin/ps/ps.c
diff options
context:
space:
mode:
authorMarcelo Araujo <araujo@FreeBSD.org>2016-04-19 00:40:43 +0000
committerMarcelo Araujo <araujo@FreeBSD.org>2016-04-19 00:40:43 +0000
commitec23a7636074b3e5129e6464fc88f16de97bc677 (patch)
treeb189275ef88fc36fbae583e4787ce94da4028f2e /bin/ps/ps.c
parent172c3b0b5f610e0b342aa70922a355e511a67f3a (diff)
downloadsrc-ec23a7636074b3e5129e6464fc88f16de97bc677.tar.gz
src-ec23a7636074b3e5129e6464fc88f16de97bc677.zip
Use NULL instead of 0 for pointers.
kvm_open(3) will return NULL when it cannot access kernel virtual memory. MFC after: 2 weeks.
Notes
Notes: svn path=/head/; revision=298233
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 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)