diff options
author | yar <yar@FreeBSD.org> | 2006-07-28 16:09:19 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2006-07-28 16:09:19 +0000 |
commit | e1db503689ae54aa3513f73b6e1aa4212ded2641 (patch) | |
tree | a96eb543030e3d44f3753ab7e82506f8d20fb99b /usr.bin/netstat/netstat.h | |
parent | aa2529c0155cd13a19220e5ce17be7a511f54099 (diff) | |
download | FreeBSD-src-e1db503689ae54aa3513f73b6e1aa4212ded2641.zip FreeBSD-src-e1db503689ae54aa3513f73b6e1aa4212ded2641.tar.gz |
Achieve WARNS=2 by using uintmax_t to pass around 64-bit quantities,
including to printf(). Using uintmax_t is also robust to further
extensions in both the C language and the bitwidth of kernel counters.
Tested on: i386 amd64 ia64
Diffstat (limited to 'usr.bin/netstat/netstat.h')
-rw-r--r-- | usr.bin/netstat/netstat.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/netstat/netstat.h b/usr.bin/netstat/netstat.h index 1eb6288..01ac8dd 100644 --- a/usr.bin/netstat/netstat.h +++ b/usr.bin/netstat/netstat.h @@ -61,9 +61,9 @@ extern int unit; /* unit number for above */ extern int af; /* address family */ int kread(u_long addr, char *buf, int size); -const char *plural(int); -const char *plurales(int); -const char *pluralies(int); +const char *plural(uintmax_t); +const char *plurales(uintmax_t); +const char *pluralies(uintmax_t); void protopr(u_long, const char *, int); void tcp_stats(u_long, const char *, int); |