Date: Thu, 6 Mar 2014 02:00:01 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r262819 - head/usr.bin/netstat Message-ID: <201403060200.s26201NU022368@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: glebius Date: Thu Mar 6 02:00:01 2014 New Revision: 262819 URL: http://svnweb.freebsd.org/changeset/base/262819 Log: Fix compilation for 32-bit machines. Modified: head/usr.bin/netstat/route.c Modified: head/usr.bin/netstat/route.c ============================================================================== --- head/usr.bin/netstat/route.c Thu Mar 6 01:59:13 2014 (r262818) +++ head/usr.bin/netstat/route.c Thu Mar 6 02:00:01 2014 (r262819) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403060200.s26201NU022368>