Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet added a linted comment about non-portable bitfie...



details:   https://anonhg.NetBSD.org/src/rev/b972ecb8b6ad
branches:  trunk
changeset: 494283:b972ecb8b6ad
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jul 05 02:45:03 2000 +0000

description:
added a linted comment about non-portable bitfields. Unfortunately it cannot
be fixed portably.

diffstat:

 sys/netinet/tcp.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 3cecc398bbcb -r b972ecb8b6ad sys/netinet/tcp.h
--- a/sys/netinet/tcp.h Wed Jul 05 02:42:39 2000 +0000
+++ b/sys/netinet/tcp.h Wed Jul 05 02:45:03 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcp.h,v 1.11 1999/11/20 00:38:00 thorpej Exp $ */
+/*     $NetBSD: tcp.h,v 1.12 2000/07/05 02:45:03 christos Exp $        */
 
 /*
  * Copyright (c) 1982, 1986, 1993
@@ -49,10 +49,12 @@
        tcp_seq   th_seq;               /* sequence number */
        tcp_seq   th_ack;               /* acknowledgement number */
 #if BYTE_ORDER == LITTLE_ENDIAN
+       /*LINTED non-portable bitfields*/
        u_int8_t  th_x2:4,              /* (unused) */
                  th_off:4;             /* data offset */
 #endif
 #if BYTE_ORDER == BIG_ENDIAN
+       /*LINTED non-portable bitfields*/
        u_int8_t  th_off:4,             /* data offset */
                  th_x2:4;              /* (unused) */
 #endif



Home | Main Index | Thread Index | Old Index