summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_header.h
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2010-01-22 07:53:41 +0000
committertuexen <tuexen@FreeBSD.org>2010-01-22 07:53:41 +0000
commit01ee00225ce30babfed9f4ff5ad883404c9ce707 (patch)
treecf02ce84305c9b28a1886a4a63838922936765f6 /sys/netinet/sctp_header.h
parent3e653995ff38c9c50d393bf9be6185a216e21098 (diff)
downloadFreeBSD-src-01ee00225ce30babfed9f4ff5ad883404c9ce707.zip
FreeBSD-src-01ee00225ce30babfed9f4ff5ad883404c9ce707.tar.gz
Use [] instead of [0] for flexible arrays.
Obtained from: Bruce Cran MFC after: 1 week
Diffstat (limited to 'sys/netinet/sctp_header.h')
-rw-r--r--sys/netinet/sctp_header.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/netinet/sctp_header.h b/sys/netinet/sctp_header.h
index e4ad773..fee4bc8 100644
--- a/sys/netinet/sctp_header.h
+++ b/sys/netinet/sctp_header.h
@@ -138,7 +138,7 @@ struct sctp_asconf_addrv4_param { /* an ASCONF address (v4) parameter */
struct sctp_supported_chunk_types_param {
struct sctp_paramhdr ph;/* type = 0x8008 len = x */
- uint8_t chunk_types[0];
+ uint8_t chunk_types[];
} SCTP_PACKED;
@@ -219,7 +219,7 @@ struct sctp_state_cookie { /* this is our definition... */
struct sctp_missing_nat_state {
uint16_t cause;
uint16_t length;
- uint8_t data[0];
+ uint8_t data[];
} SCTP_PACKED;
@@ -451,7 +451,7 @@ struct sctp_pktdrop_chunk {
uint32_t current_onq;
uint16_t trunc_len;
uint16_t reserved;
- uint8_t data[0];
+ uint8_t data[];
} SCTP_PACKED;
/**********STREAM RESET STUFF ******************/
@@ -461,13 +461,13 @@ struct sctp_stream_reset_out_request {
uint32_t request_seq; /* monotonically increasing seq no */
uint32_t response_seq; /* if a response, the resp seq no */
uint32_t send_reset_at_tsn; /* last TSN I assigned outbound */
- uint16_t list_of_streams[0]; /* if not all list of streams */
+ uint16_t list_of_streams[]; /* if not all list of streams */
} SCTP_PACKED;
struct sctp_stream_reset_in_request {
struct sctp_paramhdr ph;
uint32_t request_seq;
- uint16_t list_of_streams[0]; /* if not all list of streams */
+ uint16_t list_of_streams[]; /* if not all list of streams */
} SCTP_PACKED;
@@ -545,24 +545,24 @@ struct sctp_stream_reset_resp_tsn {
#define SCTP_RANDOM_MAX_SIZE 256
struct sctp_auth_random {
struct sctp_paramhdr ph;/* type = 0x8002 */
- uint8_t random_data[0];
+ uint8_t random_data[];
} SCTP_PACKED;
struct sctp_auth_chunk_list {
struct sctp_paramhdr ph;/* type = 0x8003 */
- uint8_t chunk_types[0];
+ uint8_t chunk_types[];
} SCTP_PACKED;
struct sctp_auth_hmac_algo {
struct sctp_paramhdr ph;/* type = 0x8004 */
- uint16_t hmac_ids[0];
+ uint16_t hmac_ids[];
} SCTP_PACKED;
struct sctp_auth_chunk {
struct sctp_chunkhdr ch;
uint16_t shared_key_id;
uint16_t hmac_id;
- uint8_t hmac[0];
+ uint8_t hmac[];
} SCTP_PACKED;
struct sctp_auth_invalid_hmac {
OpenPOWER on IntegriCloud