diff options
author | Can Erkin Acar <canacar@cvs.openbsd.org> | 2008-06-13 23:47:18 +0000 |
---|---|---|
committer | Can Erkin Acar <canacar@cvs.openbsd.org> | 2008-06-13 23:47:18 +0000 |
commit | 1a26fe268976c47e170f4fe0065fc45fadb1e48f (patch) | |
tree | 950fa5a5b92eef3bd6107ce6347256622c0afc53 /usr.bin/systat | |
parent | 9bb64dde8f0e680b56dfc03f728fa028b7071827 (diff) |
Do not print a warning if /dev/pf can not be opened.
Diffstat (limited to 'usr.bin/systat')
-rw-r--r-- | usr.bin/systat/pftop.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/systat/pftop.c b/usr.bin/systat/pftop.c index fdad0e540f7..5fccfba7d92 100644 --- a/usr.bin/systat/pftop.c +++ b/usr.bin/systat/pftop.c @@ -1,4 +1,4 @@ -/* $Id: pftop.c,v 1.1 2008/06/12 22:26:01 canacar Exp $ */ +/* $Id: pftop.c,v 1.2 2008/06/13 23:47:17 canacar Exp $ */ /* * Copyright (c) 2001, 2007 Can Erkin Acar * Copyright (c) 2001 Daniel Hartmeier @@ -2135,7 +2135,6 @@ initpftop(void) pf_dev = open("/dev/pf", O_RDONLY); if (pf_dev == -1) { alloc_buf(0); - warn("open(\"/dev/pf\")"); } else if (ioctl(pf_dev, DIOCGETSTATUS, &status)) { warn("DIOCGETSTATUS"); alloc_buf(0); |