diff options
-rw-r--r-- | sbin/pfctl/parse.y | 4 | ||||
-rw-r--r-- | sbin/pfctl/pf_print_state.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index 550a44ae912..3c91a6953a7 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.178 2002/10/30 11:55:19 henning Exp $ */ +/* $OpenBSD: parse.y,v 1.179 2002/11/02 14:13:42 dhartmei Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -1957,7 +1957,7 @@ expand_label_addr(const char *name, char *label, sa_family_t af, a[0] = 0; if ((af == AF_INET && bits < 32) || (af == AF_INET6 && bits < 128)) - snprintf(a, sizeof(a), "/%u", bits); + snprintf(a, sizeof(a), "/%i", bits); strlcat(tmp, a, PF_RULE_LABEL_SIZE); } strlcat(tmp, p+strlen(name), PF_RULE_LABEL_SIZE); diff --git a/sbin/pfctl/pf_print_state.c b/sbin/pfctl/pf_print_state.c index 3f26a236eaa..12e4d77366b 100644 --- a/sbin/pfctl/pf_print_state.c +++ b/sbin/pfctl/pf_print_state.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_print_state.c,v 1.7 2002/10/25 10:40:45 camield Exp $ */ +/* $OpenBSD: pf_print_state.c,v 1.8 2002/11/02 14:13:42 dhartmei Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -74,7 +74,7 @@ print_addr(struct pf_addr_wrap *addr, struct pf_addr *mask, sa_family_t af) int bits = unmask(mask, af); if (bits != (af == AF_INET ? 32 : 128)) - printf("/%u", bits); + printf("/%i", bits); } } |