summaryrefslogtreecommitdiffstats
path: root/contrib/pf/pfctl
diff options
context:
space:
mode:
authormlaier <mlaier@FreeBSD.org>2004-06-17 15:23:51 +0000
committermlaier <mlaier@FreeBSD.org>2004-06-17 15:23:51 +0000
commit58f0a68784c0ef250e24e97a19bb51e5d0c0e820 (patch)
tree962daa56bda5f3368ed45780066d05ae6d14d8ef /contrib/pf/pfctl
parent0f9ac8040a5e3f5e724e16f7616fb2443b7f1f8c (diff)
downloadFreeBSD-src-58f0a68784c0ef250e24e97a19bb51e5d0c0e820.zip
FreeBSD-src-58f0a68784c0ef250e24e97a19bb51e5d0c0e820.tar.gz
Fix printing of u_int64_t with a cast to unsigned long long.
Found-by: tinderbox(amd64)
Diffstat (limited to 'contrib/pf/pfctl')
-rw-r--r--contrib/pf/pfctl/pfctl_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/pf/pfctl/pfctl_parser.c b/contrib/pf/pfctl/pfctl_parser.c
index 203ec7e..c02f7da 100644
--- a/contrib/pf/pfctl/pfctl_parser.c
+++ b/contrib/pf/pfctl/pfctl_parser.c
@@ -556,7 +556,7 @@ print_status(struct pf_status *s, int opts)
s->src_nodes, "");
for (i = 0; i < SCNT_MAX; i++) {
printf(" %-25s %14lld ", pf_scounters[i],
- s->scounters[i]);
+ (unsigned long long)s->scounters[i]);
if (runtime > 0)
printf("%14.1f/s\n",
(double)s->scounters[i] / (double)runtime);
OpenPOWER on IntegriCloud