diff options
author | hrs <hrs@FreeBSD.org> | 2014-10-09 23:15:26 +0000 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2014-10-09 23:15:26 +0000 |
commit | 0f665a39d5332b9c69687c9f7ecfe500cd47daba (patch) | |
tree | 96bbf01a0b216e51cea1e3d57460992c16b5416d /sbin/route | |
parent | d602c1189c4df9d8a52d84df08292ae1bc6767cc (diff) | |
download | FreeBSD-src-0f665a39d5332b9c69687c9f7ecfe500cd47daba.zip FreeBSD-src-0f665a39d5332b9c69687c9f7ecfe500cd47daba.tar.gz |
MFC r256715:
Use long explicitly for the time difference.
Diffstat (limited to 'sbin/route')
-rw-r--r-- | sbin/route/route.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c index a69a591..234aeef 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -1780,7 +1780,8 @@ print_getmsg(struct rt_msghdr *rtm, int msglen, int fib) clock_gettime(CLOCK_REALTIME_FAST, &ts); else ts.tv_sec = 0; - printf("%8ld%c\n", rtm->rtm_rmx.rmx_expire - ts.tv_sec, lock(EXPIRE)); + printf("%8ld%c\n", (long)(rtm->rtm_rmx.rmx_expire - ts.tv_sec), + lock(EXPIRE)); #undef lock #undef msec #define RTA_IGN (RTA_DST|RTA_GATEWAY|RTA_NETMASK|RTA_IFP|RTA_IFA|RTA_BRD) |