diff options
author | mike <mike@FreeBSD.org> | 2003-01-06 04:33:46 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2003-01-06 04:33:46 +0000 |
commit | 6a9f30910ed6856506b2a374e1b30d7e4dbc0c03 (patch) | |
tree | 63d1af84e6b1779b13f4fd815c99cbec08999a9d /sys/netinet6 | |
parent | 245822d35f4c6849061bb00aa4f66f4f8dd0818a (diff) | |
download | FreeBSD-src-6a9f30910ed6856506b2a374e1b30d7e4dbc0c03.zip FreeBSD-src-6a9f30910ed6856506b2a374e1b30d7e4dbc0c03.tar.gz |
Cast return values of sizeof() to int so they can be printed with %d.
The size of this struct is unlikely to ever grow beyond what an int
can represent.
Noticed by: alpha tinderbox
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/ip6_fw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/ip6_fw.c b/sys/netinet6/ip6_fw.c index c3e6d88..451cabe 100644 --- a/sys/netinet6/ip6_fw.c +++ b/sys/netinet6/ip6_fw.c @@ -976,7 +976,7 @@ check_ip6fw_mbuf(struct mbuf *m) /* Check length */ if (m->m_len != sizeof(struct ip6_fw)) { dprintf(("%s len=%d, want %d\n", err_prefix, m->m_len, - sizeof(struct ip6_fw))); + (int)sizeof(struct ip6_fw))); return (NULL); } return(check_ip6fw_struct(mtod(m, struct ip6_fw *))); @@ -1193,7 +1193,7 @@ ip6_fw_ctl(int stage, struct mbuf **mm) if (stage == IPV6_FW_DEL) { if (m->m_len != sizeof(struct ip6_fw)) { dprintf(("%s len=%d, want %d\n", err_prefix, m->m_len, - sizeof(struct ip6_fw))); + (int)sizeof(struct ip6_fw))); error = EINVAL; } else if (mtod(m, struct ip6_fw *)->fw_number == (u_short)-1) { dprintf(("%s can't delete rule 65535\n", err_prefix)); |