Use the C99 flexible array construct to denote a variable amount of

data rather than the old-school [1] construct. We have required c99
compilers for some time.
This commit is contained in:
imp 2014-10-13 16:23:58 +00:00
parent 3ab6fb555e
commit 11cfbfbb69

View File

@ -1442,7 +1442,7 @@ typedef struct {
uint16_t snscb_addr[4]; /* response buffer address */
uint16_t snscb_sblen; /* subcommand buffer length (words) */
uint16_t snscb_reserved1;
uint16_t snscb_data[1]; /* variable data */
uint16_t snscb_data[]; /* variable data */
} sns_screq_t; /* Subcommand Request Structure */
typedef struct {
@ -1503,7 +1503,7 @@ typedef struct {
uint8_t snscb_port_type;
uint8_t snscb_port_id[3];
uint8_t snscb_portname[8];
uint16_t snscb_data[1]; /* variable data */
uint16_t snscb_data[]; /* variable data */
} sns_scrsp_t; /* Subcommand Response Structure */
typedef struct {