Merge missed r262819, that fixes broken build.

This commit is contained in:
glebius 2014-03-23 06:05:58 +00:00
parent b13aa3b9f7
commit 4109153d7b

View File

@ -329,8 +329,8 @@ size_cols_rtentry(struct rtentry *rt)
wid_flags = MAX(len, wid_flags);
if (Wflag) {
len = snprintf(buffer, sizeof(buffer), "%lu",
kread_counter((u_long )rt->rt_pksent));
len = snprintf(buffer, sizeof(buffer), "%ju",
(uintmax_t )kread_counter((u_long )rt->rt_pksent));
wid_pksent = MAX(len, wid_pksent);
}
if (rt->rt_ifp) {
@ -867,8 +867,8 @@ p_rtentry_kvm(struct rtentry *rt)
snprintf(buffer, sizeof(buffer), "%%-%d.%ds ", wid_flags, wid_flags);
p_flags(rt->rt_flags, buffer);
if (Wflag) {
printf("%*lu ", wid_pksent,
kread_counter((u_long )rt->rt_pksent));
printf("%*ju ", wid_pksent,
(uintmax_t )kread_counter((u_long )rt->rt_pksent));
if (rt->rt_mtu != 0)
printf("%*lu ", wid_mtu, rt->rt_mtu);