diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2001-09-02 15:15:32 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2001-09-02 15:15:32 +0000 |
commit | 1bf9ec505ebf33f7afbbc46230d54c5393c316f3 (patch) | |
tree | 14cabc66d0fc5844e55a7409c20eccf926840f26 /sbin | |
parent | b681f7621cc50d726360262da1ef9b6f079a3858 (diff) |
Print rule numbers zero-based. Noted by primus@gblx.net.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/pfctl/pfctl_parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c index 13cf89cd623..c852395394c 100644 --- a/sbin/pfctl/pfctl_parser.c +++ b/sbin/pfctl/pfctl_parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl_parser.c,v 1.45 2001/08/25 21:54:26 frantzen Exp $ */ +/* $OpenBSD: pfctl_parser.c,v 1.46 2001/09/02 15:15:31 dhartmei Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -464,7 +464,7 @@ print_state(struct pf_state *s) void print_rule(struct pf_rule *r) { - printf("@%d ", r->nr + 1); + printf("@%d ", r->nr); if (r->action == PF_PASS) printf("pass "); else if (r->action == PF_DROP) { |