summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2015-10-05 08:14:27 +0000
committermav <mav@FreeBSD.org>2015-10-05 08:14:27 +0000
commit2df2e7b59b17e6fd90cf75a9821081a7ac775566 (patch)
tree6535ff9216c0bb5e002fefa53ffcef69b851e54c /sys/dev
parent0640ba01cbbc420cf0510030fdbf77a3b20f8285 (diff)
downloadFreeBSD-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.h4
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 {
OpenPOWER on IntegriCloud