diff options
| author | David E. O'Brien <obrien@FreeBSD.org> | 2006-11-17 00:32:53 +0000 |
|---|---|---|
| committer | David E. O'Brien <obrien@FreeBSD.org> | 2006-11-17 00:32:53 +0000 |
| commit | 8fe69c690acc88aee0795acb666dd379d14882e9 (patch) | |
| tree | 260e8f85fb0ea06c27b356f36679ca332217d947 /contrib | |
| parent | d245b5915eaae1eea9ba999791a718614b8836aa (diff) | |
Notes
Diffstat (limited to 'contrib')
| -rw-r--r-- | contrib/pf/authpf/authpf.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/pf/authpf/authpf.c b/contrib/pf/authpf/authpf.c index af75027c4235..22fdfa426036 100644 --- a/contrib/pf/authpf/authpf.c +++ b/contrib/pf/authpf/authpf.c @@ -42,6 +42,9 @@ __FBSDID("$FreeBSD$"); #include <err.h> #include <errno.h> +#ifdef __FreeBSD__ +#include <inttypes.h> +#endif #include <login_cap.h> #include <pwd.h> #include <signal.h> @@ -702,8 +705,13 @@ change_filter(int add, const char *luser, const char *ipsrc) syslog(LOG_INFO, "allowing %s, user %s", ipsrc, luser); } else { gettimeofday(&Tend, NULL); +#ifdef __FreeBSD__ + syslog(LOG_INFO, "removed %s, user %s - duration %jd seconds", + ipsrc, luser, (intmax_t)(Tend.tv_sec - Tstart.tv_sec)); +#else syslog(LOG_INFO, "removed %s, user %s - duration %ld seconds", ipsrc, luser, Tend.tv_sec - Tstart.tv_sec); +#endif } return (0); no_mem: |
