summaryrefslogtreecommitdiffstats
path: root/sys/netgraph
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/ng_bridge.h2
-rw-r--r--sys/netgraph/ng_ksocket.h2
-rw-r--r--sys/netgraph/ng_parse.h2
-rw-r--r--sys/netgraph/ng_pppoe.h6
-rw-r--r--sys/netgraph/ng_vlan.h2
5 files changed, 7 insertions, 7 deletions
diff --git a/sys/netgraph/ng_bridge.h b/sys/netgraph/ng_bridge.h
index e60a753..0524a96 100644
--- a/sys/netgraph/ng_bridge.h
+++ b/sys/netgraph/ng_bridge.h
@@ -130,7 +130,7 @@ struct ng_bridge_host {
/* Structure returned by NGM_BRIDGE_GET_TABLE */
struct ng_bridge_host_ary {
u_int32_t numHosts;
- struct ng_bridge_host hosts[0];
+ struct ng_bridge_host hosts[];
};
/* Keep this in sync with the above structure definition */
diff --git a/sys/netgraph/ng_ksocket.h b/sys/netgraph/ng_ksocket.h
index 953486f..239722d 100644
--- a/sys/netgraph/ng_ksocket.h
+++ b/sys/netgraph/ng_ksocket.h
@@ -54,7 +54,7 @@
struct ng_ksocket_sockopt {
int32_t level; /* second arg of [gs]etsockopt() */
int32_t name; /* third arg of [gs]etsockopt() */
- u_char value[0]; /* fourth arg of [gs]etsockopt() */
+ u_char value[]; /* fourth arg of [gs]etsockopt() */
};
/* Max length socket option we can return via NGM_KSOCKET_GETOPT
diff --git a/sys/netgraph/ng_parse.h b/sys/netgraph/ng_parse.h
index b5efaf6..c17feaf 100644
--- a/sys/netgraph/ng_parse.h
+++ b/sys/netgraph/ng_parse.h
@@ -104,7 +104,7 @@
int bar; 00 00 00 00
char label[8]; 61 62 63 0a 00 00 00 00
u_char alen; 03 00
- short ary[0]; 05 00 00 00 0a 00
+ short ary[]; 05 00 00 00 0a 00
};
ASCII value
diff --git a/sys/netgraph/ng_pppoe.h b/sys/netgraph/ng_pppoe.h
index be9a48f..00bf72c 100644
--- a/sys/netgraph/ng_pppoe.h
+++ b/sys/netgraph/ng_pppoe.h
@@ -124,7 +124,7 @@ struct ngpppoestat {
struct ngpppoe_init_data {
char hook[NG_HOOKSIZ]; /* hook to monitor on */
u_int16_t data_len; /* Length of the service name */
- char data[0]; /* init data goes here */
+ char data[]; /* init data goes here */
};
/* Keep this in sync with the above structure definition */
@@ -203,7 +203,7 @@ struct ngpppoe_sts {
struct pppoe_tag {
u_int16_t tag_type;
u_int16_t tag_len;
- char tag_data[0];
+ char tag_data[];
}__packed;
struct pppoe_hdr{
@@ -212,7 +212,7 @@ struct pppoe_hdr{
u_int8_t code;
u_int16_t sid;
u_int16_t length;
- struct pppoe_tag tag[0];
+ struct pppoe_tag tag[];
}__packed;
diff --git a/sys/netgraph/ng_vlan.h b/sys/netgraph/ng_vlan.h
index 579e3ba..7cedc99 100644
--- a/sys/netgraph/ng_vlan.h
+++ b/sys/netgraph/ng_vlan.h
@@ -62,7 +62,7 @@ struct ng_vlan_filter {
/* Structure returned by NGM_VLAN_GET_TABLE. */
struct ng_vlan_table {
u_int32_t n;
- struct ng_vlan_filter filter[0];
+ struct ng_vlan_filter filter[];
};
/* Keep this in sync with the above structure definition. */
OpenPOWER on IntegriCloud