svn commit: r263478 - in stable/10: share/man/man9 sys/contrib/ipfilter/netinet sys/net sys/netatalk sys/netinet sys/netinet6 sys/netipx sys/netpfil/pf sys/nfs usr.bin/netstat
Andrey Chernov
ache at freebsd.org
Fri Mar 21 20:27:34 UTC 2014
On 22.03.2014 0:07, Andrey Chernov wrote:
> /usr/src/usr.bin/netstat/route.c:333:7: error: format specifies type
> 'unsigned long' but the argument has type 'uint64_t' (aka 'unsigned long
> long') [-Werror,-Wformat]
> kread_counter((u_long )rt->rt_pksent));
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The whole expression is
len = snprintf(buffer, sizeof(buffer), "%lu",
kread_counter((u_long )rt->rt_pksent));
You can't print uint64_t kread_counter() using %lu on i386.
> /usr/src/usr.bin/netstat/route.c:871:7: error: format specifies type
> 'unsigned long' but the argument has type 'uint64_t' (aka 'unsigned long
> long') [-Werror,-Wformat]
> kread_counter((u_long )rt->rt_pksent));
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 2 errors generated.
> *** Error code 1
>
> Stop.
--
http://ache.vniz.net/
More information about the svn-src-all
mailing list