summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2002-11-29 18:24:30 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2002-11-29 18:24:30 +0000
commit2d67f506b409747d0351bb20e0a3c0513fb28d32 (patch)
tree8bbb62029c2fb28415f5afc4bfead032d5a71250 /sbin
parentb514cc389ac2411566454694733dea15b54dff8c (diff)
no need for extra hrs; henning@ ok
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pfctl/pf_print_state.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sbin/pfctl/pf_print_state.c b/sbin/pfctl/pf_print_state.c
index ac2b9afedb8..cb3c56f4449 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.11 2002/11/23 09:33:54 deraadt Exp $ */
+/* $OpenBSD: pf_print_state.c,v 1.12 2002/11/29 18:24:29 mickey Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -150,7 +150,7 @@ print_state(struct pf_state *s, int opts)
{
struct pf_state_peer *src, *dst;
struct protoent *p;
- u_int8_t hrs, min, sec;
+ int min, sec;
if (s->direction == PF_OUT) {
src = &s->src;
@@ -212,14 +212,12 @@ print_state(struct pf_state *s, int opts)
s->creation /= 60;
min = s->creation % 60;
s->creation /= 60;
- hrs = s->creation;
- printf(" age %.2u:%.2u:%.2u", hrs, min, sec);
+ printf(" age %.2u:%.2u:%.2u", s->creation, min, sec);
sec = s->expire % 60;
s->expire /= 60;
min = s->expire % 60;
s->expire /= 60;
- hrs = s->expire;
- printf(", expires in %.2u:%.2u:%.2u", hrs, min, sec);
+ printf(", expires in %.2u:%.2u:%.2u", s->expire, min, sec);
printf(", %u pkts, %u bytes", s->packets, s->bytes);
if (s->rule.nr != USHRT_MAX)
printf(", rule %u", s->rule.nr);