summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndre Heider <a.heider@gmail.com>2022-11-21 10:07:37 +0100
committerJo-Philipp Wich <jo@mein.io>2022-12-15 23:52:04 +0100
commit9f29e79eea45a266ca29f158c4dfe35485f0eac7 (patch)
tree9d01ef95b899f692c23aeba87accb989c308ccf7 /include
parentfddc015704ef32c9d656df2b086d76dbaaffd99b (diff)
downloadiwinfo-9f29e79eea45a266ca29f158c4dfe35485f0eac7.tar.gz
lib: constify and fixup the string array definitions
Match their declarations as per the header. Signed-off-by: Andre Heider <a.heider@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/iwinfo.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/iwinfo.h b/include/iwinfo.h
index 2965785..90e5906 100644
--- a/include/iwinfo.h
+++ b/include/iwinfo.h
@@ -68,9 +68,9 @@
#define IWINFO_FREQ_NO_160MHZ (1 << 5)
#define IWINFO_FREQ_NO_HE (1 << 6)
-extern const char *IWINFO_CIPHER_NAMES[IWINFO_CIPHER_COUNT];
-extern const char *IWINFO_KMGMT_NAMES[IWINFO_KMGMT_COUNT];
-extern const char *IWINFO_AUTH_NAMES[IWINFO_AUTH_COUNT];
+extern const char * const IWINFO_CIPHER_NAMES[IWINFO_CIPHER_COUNT];
+extern const char * const IWINFO_KMGMT_NAMES[IWINFO_KMGMT_COUNT];
+extern const char * const IWINFO_AUTH_NAMES[IWINFO_AUTH_COUNT];
enum iwinfo_opmode {
@@ -86,7 +86,7 @@ enum iwinfo_opmode {
IWINFO_OPMODE_P2P_GO = 9,
};
-extern const char *IWINFO_OPMODE_NAMES[];
+extern const char * const IWINFO_OPMODE_NAMES[];
enum iwinfo_htmode {
@@ -107,7 +107,7 @@ enum iwinfo_htmode {
IWINFO_HTMODE_COUNT = 13
};
-extern const char *IWINFO_HTMODE_NAMES[IWINFO_HTMODE_COUNT];
+extern const char * const IWINFO_HTMODE_NAMES[IWINFO_HTMODE_COUNT];
struct iwinfo_rate_entry {
@@ -229,7 +229,7 @@ struct iwinfo_country_entry {
struct iwinfo_iso3166_label {
uint16_t iso3166;
- char name[28];
+ const char name[28];
};
struct iwinfo_hardware_id {