diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2015-12-11 11:53:53 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2015-12-11 11:53:53 +0000 |
commit | 31d8bcd1b774adc764cf7c0e871b9a64c124b9c0 (patch) | |
tree | fa1a14d93213b118817685e7e6af2f4ac86241b4 /usr.sbin/pstat/pstat.c | |
parent | 7b36ff6f2d426b9393d6d037b0f599e206f99ba3 (diff) |
dformat is pointer, don't compare with 0
Diffstat (limited to 'usr.sbin/pstat/pstat.c')
-rw-r--r-- | usr.sbin/pstat/pstat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c index 172d39cd7c5..86aea58a7ce 100644 --- a/usr.sbin/pstat/pstat.c +++ b/usr.sbin/pstat/pstat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pstat.c,v 1.100 2015/08/28 04:38:47 guenther Exp $ */ +/* $OpenBSD: pstat.c,v 1.101 2015/12/11 11:53:52 tedu Exp $ */ /* $NetBSD: pstat.c,v 1.27 1996/10/23 22:50:06 cgd Exp $ */ /*- @@ -187,7 +187,7 @@ main(int argc, char *argv[]) if (dformat && getuid()) errx(1, "Only root can use -d"); - if ((dformat == 0 && argc > 0) || (dformat && argc == 0)) + if ((dformat == NULL && argc > 0) || (dformat && argc == 0)) usage(); need_nlist = vnodeflag || dformat; |