mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-05 09:14:03 +00:00
Use long explicitly for the time difference.
This commit is contained in:
parent
87f804e879
commit
6c3bcdf0de
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=256715
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user