summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pstat
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2015-12-11 11:53:52 +0000
committertedu <tedu@openbsd.org>2015-12-11 11:53:52 +0000
commit382884a0c654bdd3bc33711b4e26b944f8b2a7af (patch)
treea93acb3266c5a135a16fe265a86d25c12db338bc /usr.sbin/pstat
parentimplement kqfilter. copied from tmpfs (which I copied from ufs). (diff)
downloadwireguard-openbsd-382884a0c654bdd3bc33711b4e26b944f8b2a7af.tar.xz
wireguard-openbsd-382884a0c654bdd3bc33711b4e26b944f8b2a7af.zip
dformat is pointer, don't compare with 0
Diffstat (limited to 'usr.sbin/pstat')
-rw-r--r--usr.sbin/pstat/pstat.c4
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;