summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2013-04-02 06:04:51 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2013-04-02 06:04:51 +0000
commitcb3ad6642c947ce5130bc42cb82414cfffe007db (patch)
tree5ad04961cdac6054f2b93d0c03697961551c33e1 /usr.sbin
parent8620873b9694d0191908b8575eff0f635003fe04 (diff)
Handle big time_t
ok deraadt@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/authpf/authpf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/authpf/authpf.c b/usr.sbin/authpf/authpf.c
index dd556529b2d..d036bfa850c 100644
--- a/usr.sbin/authpf/authpf.c
+++ b/usr.sbin/authpf/authpf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: authpf.c,v 1.118 2013/01/19 16:58:16 miod Exp $ */
+/* $OpenBSD: authpf.c,v 1.119 2013/04/02 06:04:50 guenther Exp $ */
/*
* Copyright (C) 1998 - 2007 Bob Beck (beck@openbsd.org).
@@ -826,8 +826,8 @@ change_filter(int add, const char *luser, const char *ipsrc)
remove_stale_rulesets();
gettimeofday(&Tend, NULL);
- syslog(LOG_INFO, "removed %s, user %s - duration %ld seconds",
- ipsrc, luser, Tend.tv_sec - Tstart.tv_sec);
+ syslog(LOG_INFO, "removed %s, user %s - duration %d seconds",
+ ipsrc, luser, (int)(Tend.tv_sec - Tstart.tv_sec));
}
return (0);
no_mem: