diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2005-05-26 15:30:40 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2005-05-26 15:30:40 +0000 |
commit | eb0bcb3386167184cae3078fcc9f1c74f58d9776 (patch) | |
tree | 9e0279d1a543a38331b92b3339aa87428f89793a /sbin | |
parent | 3fed2ac9c28a2b2b7ac4ecb26c33ed867ef50b5a (diff) |
use PF_LOG, PF_LOGALL instead of numeric constants
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/pfctl/pfctl_parser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c index d23429c1b8e..ef5f8e7c146 100644 --- a/sbin/pfctl/pfctl_parser.c +++ b/sbin/pfctl/pfctl_parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl_parser.c,v 1.212 2005/05/21 21:03:58 henning Exp $ */ +/* $OpenBSD: pfctl_parser.c,v 1.213 2005/05/26 15:30:39 dhartmei Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -714,9 +714,9 @@ print_rule(struct pf_rule *r, const char *anchor_call, int verbose) printf(" in"); else if (r->direction == PF_OUT) printf(" out"); - if (r->log == 1) + if (r->log == PF_LOG) printf(" log"); - else if (r->log == 2) + else if (r->log == PF_LOGALL) printf(" log-all"); if (r->quick) printf(" quick"); |