summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2002-04-28 12:17:27 +0000
committermarkm <markm@FreeBSD.org>2002-04-28 12:17:27 +0000
commitd4767a7bb1ee2a63583238d78820322964ef290d (patch)
tree211d731e4b1ebde30e2a2c4a9bfc84ccf9aed3eb /usr.bin/netstat
parent0f588b93731c0d826bbc0590f928f38702d4bd77 (diff)
downloadFreeBSD-src-d4767a7bb1ee2a63583238d78820322964ef290d.zip
FreeBSD-src-d4767a7bb1ee2a63583238d78820322964ef290d.tar.gz
Cast to kill warnings. De-register.
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/inet6.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/netstat/inet6.c b/usr.bin/netstat/inet6.c
index af2382a..e6351e9 100644
--- a/usr.bin/netstat/inet6.c
+++ b/usr.bin/netstat/inet6.c
@@ -816,7 +816,7 @@ void
icmp6_stats(u_long off __unused, char *name, int af __unused)
{
struct icmp6stat icmp6stat;
- register int i, first;
+ int i, first;
int mib[4];
size_t len;
@@ -840,7 +840,7 @@ icmp6_stats(u_long off __unused, char *name, int af __unused)
"\t%llu error%s not generated because old message was icmp error or so\n");
p(icp6s_toofreq,
"\t%llu error%s not generated because rate limitation\n");
-#define NELEM (sizeof(icmp6stat.icp6s_outhist)/sizeof(icmp6stat.icp6s_outhist[0]))
+#define NELEM (int)(sizeof(icmp6stat.icp6s_outhist)/sizeof(icmp6stat.icp6s_outhist[0]))
for (first = 1, i = 0; i < NELEM; i++)
if (icmp6stat.icp6s_outhist[i] != 0) {
if (first) {
@@ -855,7 +855,7 @@ icmp6_stats(u_long off __unused, char *name, int af __unused)
p(icp6s_tooshort, "\t%llu message%s < minimum length\n");
p(icp6s_checksum, "\t%llu bad checksum%s\n");
p(icp6s_badlen, "\t%llu message%s with bad length\n");
-#define NELEM (sizeof(icmp6stat.icp6s_inhist)/sizeof(icmp6stat.icp6s_inhist[0]))
+#define NELEM (int)(sizeof(icmp6stat.icp6s_inhist)/sizeof(icmp6stat.icp6s_inhist[0]))
for (first = 1, i = 0; i < NELEM; i++)
if (icmp6stat.icp6s_inhist[i] != 0) {
if (first) {
OpenPOWER on IntegriCloud