summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-09-22 18:30:12 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-09-22 18:30:12 +0000
commitd283d991a7fd0cadb274db4397cc495b1d957c1d (patch)
tree9b10d1a5c84c4bf64988530660eebbb584ca1702 /sbin
parentefd509079bbe70a1d674d7e54681eda05dd96368 (diff)
remove debug printf
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pfctl/pfctl.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c
index 438ec5dc6ad..29a08b02cad 100644
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl.c,v 1.39 2001/09/06 18:05:46 jasoni Exp $ */
+/* $OpenBSD: pfctl.c,v 1.40 2001/09/22 18:30:11 deraadt Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -83,7 +83,6 @@ char *debugopt;
char *infile;
-
static const struct {
const char *name;
int timeout;
@@ -297,10 +296,8 @@ pfctl_show_states(int dev, u_int8_t proto)
}
if (ps.ps_len + sizeof(struct pfioc_state) < len)
break;
- if (len == 0 && ps.ps_len == 0) {
- printf("no states\n");
+ if (len == 0 && ps.ps_len == 0)
return (0);
- }
if (len == 0 && ps.ps_len != 0)
len = ps.ps_len;
if (ps.ps_len == 0)