diff --git a/libs/exanic/fifo_if.h b/libs/exanic/fifo_if.h index ffbb9f7..7ffeeee 100644 --- a/libs/exanic/fifo_if.h +++ b/libs/exanic/fifo_if.h @@ -142,7 +142,7 @@ struct tx_chunk * \note The actual data to transmit may not begin at the beginning of the * payload due to padding. See \ref exanic_payload_padding_bytes. */ - char payload[0]; + char payload[]; }; /** @@ -172,7 +172,7 @@ struct tx_payload_metadata /** * TCP payload starts here */ - char payload[0]; + char payload[]; }; /** diff --git a/libs/exanic/transceiver.h b/libs/exanic/transceiver.h index 09481a9..2869ab6 100644 --- a/libs/exanic/transceiver.h +++ b/libs/exanic/transceiver.h @@ -31,7 +31,7 @@ typedef struct { double temp; /* degrees C */ unsigned num_lanes; - struct exanic_port_xcvr_diag lanes[0]; /* per lane diagnostics */ + struct exanic_port_xcvr_diag lanes[]; /* per lane diagnostics */ } exanic_xcvr_diag_info_t; /* port_number: ethernet interface number */