diff options
author | guenther <guenther@openbsd.org> | 2013-04-02 06:04:50 +0000 |
---|---|---|
committer | guenther <guenther@openbsd.org> | 2013-04-02 06:04:50 +0000 |
commit | 42cfecbbf15d82750b424ec380247b691a5f3aab (patch) | |
tree | 0c0212f8def7aadedf8b08dec97074d813720d53 /usr.sbin/authpf | |
parent | handle large time_t (diff) | |
download | wireguard-openbsd-42cfecbbf15d82750b424ec380247b691a5f3aab.tar.xz wireguard-openbsd-42cfecbbf15d82750b424ec380247b691a5f3aab.zip |
Handle big time_t
ok deraadt@
Diffstat (limited to 'usr.sbin/authpf')
-rw-r--r-- | usr.sbin/authpf/authpf.c | 6 |
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: |