From d283d991a7fd0cadb274db4397cc495b1d957c1d Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 22 Sep 2001 18:30:12 +0000 Subject: remove debug printf --- sbin/pfctl/pfctl.c | 7 ++----- 1 file 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) -- cgit v1.2.3