diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2002-11-02 15:29:29 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2002-11-02 15:29:29 +0000 |
commit | 4ffaf01929081795d0a4922f4999f9d4b437d96d (patch) | |
tree | ddb379099c2e3c1e3b1ccb974359bfa902c34be5 /sbin | |
parent | 4a74da198fb84eadf0540737aa6731db3ae20636 (diff) |
%i -> %d, matches the style of existing code, from millert@
Diffstat (limited to 'sbin')
-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 3c91a6953a7..05f4941c508 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.179 2002/11/02 14:13:42 dhartmei Exp $ */ +/* $OpenBSD: parse.y,v 1.180 2002/11/02 15:29:28 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), "/%i", bits); + snprintf(a, sizeof(a), "/%d", 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 12e4d77366b..a1fb6d4e4d0 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.8 2002/11/02 14:13:42 dhartmei Exp $ */ +/* $OpenBSD: pf_print_state.c,v 1.9 2002/11/02 15:29:28 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("/%i", bits); + printf("/%d", bits); } } |