diff options
author | Kristof Provost <kp@FreeBSD.org> | 2022-09-29 12:45:03 +0000 |
---|---|---|
committer | Kristof Provost <kp@FreeBSD.org> | 2022-10-05 15:52:27 +0000 |
commit | 1d090028d3037adffac6fde004b2ad035921bb49 (patch) | |
tree | 7b4596c9c03dd2c16cb4fac814730257d11cee9f /sbin/pfctl | |
parent | 1fc839f48921919dea386966e0ce4f20c26dcecf (diff) | |
download | src-1d090028d3037adffac6fde004b2ad035921bb49.tar.gz src-1d090028d3037adffac6fde004b2ad035921bb49.zip |
Diffstat (limited to 'sbin/pfctl')
-rw-r--r-- | sbin/pfctl/pfctl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c index bc6f14e1c197..37c9625492b1 100644 --- a/sbin/pfctl/pfctl.c +++ b/sbin/pfctl/pfctl.c @@ -1020,8 +1020,8 @@ pfctl_print_eth_rule_counters(struct pfctl_eth_rule *rule, int opts) char timestr[30]; if (rule->last_active_timestamp != 0) { - time_t last_active = rule->last_active_timestamp; - bcopy(ctime(&last_active), timestr, sizeof(timestr)); + bcopy(ctime(&rule->last_active_timestamp), timestr, + sizeof(timestr)); *strchr(timestr, '\n') = '\0'; } else { snprintf(timestr, sizeof(timestr), "N/A"); @@ -1070,8 +1070,8 @@ pfctl_print_rule_counters(struct pfctl_rule *rule, int opts) if (opts & PF_OPT_VERBOSE2) { char timestr[30]; if (rule->last_active_timestamp != 0) { - time_t last_active = rule->last_active_timestamp; - bcopy(ctime(&last_active), timestr, sizeof(timestr)); + bcopy(ctime(&rule->last_active_timestamp), timestr, + sizeof(timestr)); *strchr(timestr, '\n') = '\0'; } else { snprintf(timestr, sizeof(timestr), "N/A"); |