diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2011-02-03 17:29:17 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2011-02-03 17:29:17 +0000 |
commit | 4aafc7306d40639d1996a0f4a05f9e850d4bc85c (patch) | |
tree | 89a3764574bf053dd7a729375474884ff4fdc47d /sys/netinet/ip_input.c | |
parent | 4e8512731196b2507aa2f47054e9b60fabf947a3 (diff) |
ip_ttl is u_int8_t, not u_char so adjust sizeof for consistency.
No binary change. OK otto@
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r-- | sys/netinet/ip_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 7579001ef08..ab401781a91 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_input.c,v 1.184 2010/09/08 08:34:42 claudio Exp $ */ +/* $OpenBSD: ip_input.c,v 1.185 2011/02/03 17:29:16 millert Exp $ */ /* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */ /* @@ -1743,7 +1743,7 @@ ip_savecontrol(struct inpcb *inp, struct mbuf **mp, struct ip *ip, } if (inp->inp_flags & INP_RECVTTL) { *mp = sbcreatecontrol((caddr_t) &ip->ip_ttl, - sizeof(u_char), IP_RECVTTL, IPPROTO_IP); + sizeof(u_int8_t), IP_RECVTTL, IPPROTO_IP); if (*mp) mp = &(*mp)->m_next; } |