summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-06-07 12:00:13 +0000
committerbde <bde@FreeBSD.org>1998-06-07 12:00:13 +0000
commit5b773a9c2c66a8dfb24ad75d391b22a96fd64135 (patch)
tree4a0bdbba79438055153ad53bdde0947ddfa8f764 /sys/netinet/ip.h
parent50b73bbeae3931e6d652a7104dc8f0ab89670d1d (diff)
downloadFreeBSD-src-5b773a9c2c66a8dfb24ad75d391b22a96fd64135.zip
FreeBSD-src-5b773a9c2c66a8dfb24ad75d391b22a96fd64135.tar.gz
Fixed pedantic semantics errors (bitfields not of type int, signed int
or unsigned int).
Diffstat (limited to 'sys/netinet/ip.h')
-rw-r--r--sys/netinet/ip.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/netinet/ip.h b/sys/netinet/ip.h
index 9676dee..c5e916b 100644
--- a/sys/netinet/ip.h
+++ b/sys/netinet/ip.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ip.h 8.2 (Berkeley) 6/1/94
- * $Id: ip.h,v 1.13 1997/12/19 23:33:08 bde Exp $
+ * $Id: ip.h,v 1.14 1998/02/26 08:31:52 dima Exp $
*/
#ifndef _NETINET_IP_H_
@@ -51,11 +51,11 @@ struct ip {
u_char ip_vhl; /* version << 4 | header length >> 2 */
#else
#if BYTE_ORDER == LITTLE_ENDIAN
- u_char ip_hl:4, /* header length */
+ u_int ip_hl:4, /* header length */
ip_v:4; /* version */
#endif
#if BYTE_ORDER == BIG_ENDIAN
- u_char ip_v:4, /* version */
+ u_int ip_v:4, /* version */
ip_hl:4; /* header length */
#endif
#endif /* not _IP_VHL */
@@ -141,11 +141,11 @@ struct ip_timestamp {
u_char ipt_len; /* size of structure (variable) */
u_char ipt_ptr; /* index of current entry */
#if BYTE_ORDER == LITTLE_ENDIAN
- u_char ipt_flg:4, /* flags, see below */
+ u_int ipt_flg:4, /* flags, see below */
ipt_oflw:4; /* overflow counter */
#endif
#if BYTE_ORDER == BIG_ENDIAN
- u_char ipt_oflw:4, /* overflow counter */
+ u_int ipt_oflw:4, /* overflow counter */
ipt_flg:4; /* flags, see below */
#endif
union ipt_timestamp {
OpenPOWER on IntegriCloud