summaryrefslogtreecommitdiff
path: root/usr.bin/systat/pftop.c
diff options
context:
space:
mode:
authorCan Erkin Acar <canacar@cvs.openbsd.org>2009-06-10 03:42:59 +0000
committerCan Erkin Acar <canacar@cvs.openbsd.org>2009-06-10 03:42:59 +0000
commitb39cf6721852aac7e05027443df88f5fdbeb2c5f (patch)
treec033a5f03d35bb7a48fcf5d3249b0269addc8457 /usr.bin/systat/pftop.c
parentb824424ec915426376b254de20d2dce35bd78aa9 (diff)
Revert part of the earlier commit that displayed garbage instead of
the action column values. reported by jmc@
Diffstat (limited to 'usr.bin/systat/pftop.c')
-rw-r--r--usr.bin/systat/pftop.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/systat/pftop.c b/usr.bin/systat/pftop.c
index 6af1cef13bb..6da23a5e39c 100644
--- a/usr.bin/systat/pftop.c
+++ b/usr.bin/systat/pftop.c
@@ -1,4 +1,4 @@
-/* $Id: pftop.c,v 1.11 2009/04/23 12:58:44 henning Exp $ */
+/* $Id: pftop.c,v 1.12 2009/06/10 03:42:58 canacar Exp $ */
/*
* Copyright (c) 2001, 2007 Can Erkin Acar
* Copyright (c) 2001 Daniel Hartmeier
@@ -1309,11 +1309,10 @@ print_rule(struct pf_rule *pr)
else if (pr->log == 2)
print_fld_str(FLD_LOG, "All");
- printf("%u ", pr->action);
-/* if (pr->action >= numact)
+ if (pr->action >= numact)
print_fld_uint(FLD_ACTION, pr->action);
else print_fld_str(FLD_ACTION, actiontypes[pr->action]);
-*/
+
if (pr->proto) {
struct protoent *p = getprotobynumber(pr->proto);