aboutsummaryrefslogtreecommitdiff
path: root/sbin/route/route.c
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2013-10-18 02:22:38 +0000
committerHiroki Sato <hrs@FreeBSD.org>2013-10-18 02:22:38 +0000
commit6c3bcdf0dea300f40c2cc8c09ce61d2aa5e6988b (patch)
tree91b7b3f05b84fa1d2bd429f6c9b6a5d1211a4003 /sbin/route/route.c
parent87f804e87988ae9aa1001c1e7ecfde13e84fd591 (diff)
downloadsrc-6c3bcdf0dea300f40c2cc8c09ce61d2aa5e6988b.tar.gz
src-6c3bcdf0dea300f40c2cc8c09ce61d2aa5e6988b.zip
Use long explicitly for the time difference.
Notes
Notes: svn path=/head/; revision=256715
Diffstat (limited to 'sbin/route/route.c')
-rw-r--r--sbin/route/route.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c
index a4a7469828b6..47c63a937475 100644
--- a/sbin/route/route.c
+++ b/sbin/route/route.c
@@ -1760,7 +1760,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)