diff options
author | araujo <araujo@FreeBSD.org> | 2016-04-19 00:40:43 +0000 |
---|---|---|
committer | araujo <araujo@FreeBSD.org> | 2016-04-19 00:40:43 +0000 |
commit | de70093c620fdeab9a53f1b2da8f263bd85aebc9 (patch) | |
tree | b189275ef88fc36fbae583e4787ce94da4028f2e /bin | |
parent | 2613322bcf6560209ba9f2e4a2cbdf130173a33b (diff) | |
download | FreeBSD-src-de70093c620fdeab9a53f1b2da8f263bd85aebc9.zip FreeBSD-src-de70093c620fdeab9a53f1b2da8f263bd85aebc9.tar.gz |
Use NULL instead of 0 for pointers.
kvm_open(3) will return NULL when it cannot access kernel virtual memory.
MFC after: 2 weeks.
Diffstat (limited to 'bin')
-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 e86cfa8..eeaa9c8 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) |