summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-06-08 09:47:47 +0000
committerbde <bde@FreeBSD.org>1998-06-08 09:47:47 +0000
commit566ee5c323c868aba9bdc6c3d1ad52a3dd7b17e9 (patch)
tree60516df8ad7a4fdc14c976a4578f7bf48ed75610 /sys/netinet/tcp.h
parentfaa17713f8d56432bac81058b7e1d2596e19c5b1 (diff)
downloadFreeBSD-src-566ee5c323c868aba9bdc6c3d1ad52a3dd7b17e9.zip
FreeBSD-src-566ee5c323c868aba9bdc6c3d1ad52a3dd7b17e9.tar.gz
Fixed pedantic semantics errors (bitfields not of type int, signed int
or unsigned int (this doesn't change the struct layout, size or alignment in any of the files changed in this commit, at least for gcc on i386's. Using bitfields of type u_char may affect size and alignment but not packing)).
Diffstat (limited to 'sys/netinet/tcp.h')
-rw-r--r--sys/netinet/tcp.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/tcp.h b/sys/netinet/tcp.h
index 3585917..253ddb3 100644
--- a/sys/netinet/tcp.h
+++ b/sys/netinet/tcp.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tcp.h 8.1 (Berkeley) 6/10/93
- * $Id$
+ * $Id: tcp.h,v 1.8 1997/02/22 09:41:37 peter Exp $
*/
#ifndef _NETINET_TCP_H_
@@ -50,11 +50,11 @@ struct tcphdr {
tcp_seq th_seq; /* sequence number */
tcp_seq th_ack; /* acknowledgement number */
#if BYTE_ORDER == LITTLE_ENDIAN
- u_char th_x2:4, /* (unused) */
+ u_int th_x2:4, /* (unused) */
th_off:4; /* data offset */
#endif
#if BYTE_ORDER == BIG_ENDIAN
- u_char th_off:4, /* data offset */
+ u_int th_off:4, /* data offset */
th_x2:4; /* (unused) */
#endif
u_char th_flags;
OpenPOWER on IntegriCloud