diff options
author | mav <mav@FreeBSD.org> | 2015-10-05 08:14:27 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2015-10-05 08:14:27 +0000 |
commit | 2df2e7b59b17e6fd90cf75a9821081a7ac775566 (patch) | |
tree | 6535ff9216c0bb5e002fefa53ffcef69b851e54c /sys/dev | |
parent | 0640ba01cbbc420cf0510030fdbf77a3b20f8285 (diff) | |
download | FreeBSD-src-2df2e7b59b17e6fd90cf75a9821081a7ac775566.zip FreeBSD-src-2df2e7b59b17e6fd90cf75a9821081a7ac775566.tar.gz |
MFC r273051 (by imp):
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.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/isp/ispmbox.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/isp/ispmbox.h b/sys/dev/isp/ispmbox.h index 85b31e5..d2a29b2 100644 --- a/sys/dev/isp/ispmbox.h +++ b/sys/dev/isp/ispmbox.h @@ -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 { |