diff options
author | Marcelo Araujo <araujo@FreeBSD.org> | 2016-04-19 00:40:43 +0000 |
---|---|---|
committer | Marcelo Araujo <araujo@FreeBSD.org> | 2016-04-19 00:40:43 +0000 |
commit | ec23a7636074b3e5129e6464fc88f16de97bc677 (patch) | |
tree | b189275ef88fc36fbae583e4787ce94da4028f2e /bin/ps | |
parent | 172c3b0b5f610e0b342aa70922a355e511a67f3a (diff) |
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')
-rw-r--r-- | bin/ps/ps.c | 2 |
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) |