svn commit: r273051 - head/sys/dev/isp

Warner Losh imp at FreeBSD.org
Mon Oct 13 16:23:59 UTC 2014


Author: imp
Date: Mon Oct 13 16:23:58 2014
New Revision: 273051
URL: https://svnweb.freebsd.org/changeset/base/273051

Log:
  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.

Modified:
  head/sys/dev/isp/ispmbox.h

Modified: head/sys/dev/isp/ispmbox.h
==============================================================================
--- head/sys/dev/isp/ispmbox.h	Mon Oct 13 16:23:51 2014	(r273050)
+++ head/sys/dev/isp/ispmbox.h	Mon Oct 13 16:23:58 2014	(r273051)
@@ -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 {


More information about the svn-src-all mailing list