fix printf formats.
This commit is contained in:
parent
b09dc428f4
commit
b935e079cd
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if.c,v 1.26 2007/08/14 03:39:19 dyoung Exp $ */
|
||||
/* $NetBSD: if.c,v 1.27 2008/12/28 20:15:21 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
|
@ -37,7 +37,7 @@
|
|||
#include "pathnames.h"
|
||||
|
||||
#ifdef __NetBSD__
|
||||
__RCSID("$NetBSD: if.c,v 1.26 2007/08/14 03:39:19 dyoung Exp $");
|
||||
__RCSID("$NetBSD: if.c,v 1.27 2008/12/28 20:15:21 christos Exp $");
|
||||
#elif defined(__FreeBSD__)
|
||||
__RCSID("$FreeBSD$");
|
||||
#else
|
||||
|
@ -981,9 +981,10 @@ ifinit(void)
|
|||
} else if (now.tv_sec>(ifp->int_data.ts
|
||||
+ CHECK_BAD_INTERVAL)) {
|
||||
trace_act("interface %s has been off"
|
||||
" %ld seconds; forget it",
|
||||
" %lld seconds; forget it",
|
||||
ifp->int_name,
|
||||
now.tv_sec-ifp->int_data.ts);
|
||||
(long long)now.tv_sec -
|
||||
ifp->int_data.ts);
|
||||
ifdel(ifp);
|
||||
ifp = 0;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: table.c,v 1.22 2004/07/06 23:36:24 mycroft Exp $ */
|
||||
/* $NetBSD: table.c,v 1.23 2008/12/28 20:15:21 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1988, 1993
|
||||
|
@ -36,7 +36,7 @@
|
|||
#include "defs.h"
|
||||
|
||||
#ifdef __NetBSD__
|
||||
__RCSID("$NetBSD: table.c,v 1.22 2004/07/06 23:36:24 mycroft Exp $");
|
||||
__RCSID("$NetBSD: table.c,v 1.23 2008/12/28 20:15:21 christos Exp $");
|
||||
#elif defined(__FreeBSD__)
|
||||
__RCSID("$FreeBSD$");
|
||||
#else
|
||||
|
@ -2130,11 +2130,11 @@ age(naddr bad_gate)
|
|||
if (ifp->int_act_time != NEVER
|
||||
&& now.tv_sec - ifp->int_act_time > EXPIRE_TIME) {
|
||||
msglog("remote interface %s to %s timed out after"
|
||||
" %ld:%ld",
|
||||
" %lld:%lld",
|
||||
ifp->int_name,
|
||||
naddr_ntoa(ifp->int_dstaddr),
|
||||
(now.tv_sec - ifp->int_act_time)/60,
|
||||
(now.tv_sec - ifp->int_act_time)%60);
|
||||
(long long)(now.tv_sec - ifp->int_act_time)/60,
|
||||
(long long)(now.tv_sec - ifp->int_act_time)%60);
|
||||
if_sick(ifp);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue