78 lines
2.1 KiB
Diff
78 lines
2.1 KiB
Diff
From 3e64b474c112a40620ada798ec2d69747d921474 Mon Sep 17 00:00:00 2001
|
|
From: Augustin Cavalier <waddlesplash@gmail.com>
|
|
Date: Mon, 13 Apr 2020 18:34:42 -0400
|
|
Subject: [PATCH] GCC2 fixes.
|
|
|
|
---
|
|
src/ap/hostapd.h | 2 +-
|
|
src/common/ieee802_11_common.h | 2 +-
|
|
src/common/ieee802_11_defs.h | 8 ++++----
|
|
3 files changed, 6 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/src/ap/hostapd.h b/src/ap/hostapd.h
|
|
index 518c7f1..d31f078 100644
|
|
--- a/src/ap/hostapd.h
|
|
+++ b/src/ap/hostapd.h
|
|
@@ -135,7 +135,7 @@ struct hostapd_sae_commit_queue {
|
|
struct dl_list list;
|
|
int rssi;
|
|
size_t len;
|
|
- u8 msg[];
|
|
+ u8 msg[0];
|
|
};
|
|
|
|
/**
|
|
diff --git a/src/common/ieee802_11_common.h b/src/common/ieee802_11_common.h
|
|
index 963b67a..9491128 100644
|
|
--- a/src/common/ieee802_11_common.h
|
|
+++ b/src/common/ieee802_11_common.h
|
|
@@ -15,7 +15,7 @@
|
|
struct element {
|
|
u8 id;
|
|
u8 datalen;
|
|
- u8 data[];
|
|
+ u8 data[0];
|
|
} STRUCT_PACKED;
|
|
|
|
struct hostapd_hw_modes;
|
|
diff --git a/src/common/ieee802_11_defs.h b/src/common/ieee802_11_defs.h
|
|
index 71cf383..1b3bdb6 100644
|
|
--- a/src/common/ieee802_11_defs.h
|
|
+++ b/src/common/ieee802_11_defs.h
|
|
@@ -948,12 +948,12 @@ struct ieee80211_mgmt {
|
|
struct {
|
|
u8 action;
|
|
u8 trans_id[WLAN_SA_QUERY_TR_ID_LEN];
|
|
- u8 variable[]; /* OCI element */
|
|
+ u8 variable[0]; /* OCI element */
|
|
} STRUCT_PACKED sa_query_req;
|
|
struct {
|
|
u8 action; /* */
|
|
u8 trans_id[WLAN_SA_QUERY_TR_ID_LEN];
|
|
- u8 variable[]; /* OCI element */
|
|
+ u8 variable[0]; /* OCI element */
|
|
} STRUCT_PACKED sa_query_resp;
|
|
struct {
|
|
u8 action;
|
|
@@ -1014,7 +1014,7 @@ struct ieee80211_mgmt {
|
|
struct {
|
|
u8 action; /* 12 */
|
|
u8 dialog_token;
|
|
- u8 variable[];
|
|
+ u8 variable[0];
|
|
} STRUCT_PACKED coloc_intf_report;
|
|
struct {
|
|
u8 action; /* 15 */
|
|
@@ -2109,7 +2109,7 @@ struct ieee80211_he_capabilities {
|
|
u8 he_phy_capab_info[11];
|
|
/* Followed by 4, 8, or 12 octets of Supported HE-MCS And NSS Set field
|
|
* and optional variable length PPE Thresholds field. */
|
|
- u8 optional[];
|
|
+ u8 optional[0];
|
|
} STRUCT_PACKED;
|
|
|
|
struct ieee80211_he_operation {
|
|
--
|
|
2.24.1
|
|
|