diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2016-01-25 15:00:22 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2016-01-25 15:00:22 +0100 |
commit | e3bd6c3653669bd53b87944ecedebe5bce162f7a (patch) | |
tree | 8b5de45c88d6fe148ce92d19df17c62b47e29950 /include | |
parent | 1b471aa33dcc1031a456c3a04f04a0097e5b89a5 (diff) | |
download | iwinfo-e3bd6c3653669bd53b87944ecedebe5bce162f7a.tar.gz |
iwinfo: assign explicit length to IWINFO_*_NAMES[] to fix compile issues
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/iwinfo.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/iwinfo.h b/include/iwinfo.h index f8cec73..62e5891 100644 --- a/include/iwinfo.h +++ b/include/iwinfo.h @@ -37,17 +37,20 @@ #define IWINFO_CIPHER_WEP104 (1 << 5) #define IWINFO_CIPHER_AESOCB (1 << 6) #define IWINFO_CIPHER_CKIP (1 << 7) +#define IWINFO_CIPHER_COUNT 8 #define IWINFO_KMGMT_NONE (1 << 0) #define IWINFO_KMGMT_8021x (1 << 1) #define IWINFO_KMGMT_PSK (1 << 2) +#define IWINFO_KMGMT_COUNT 3 #define IWINFO_AUTH_OPEN (1 << 0) #define IWINFO_AUTH_SHARED (1 << 1) +#define IWINFO_AUTH_COUNT 2 -extern const char *IWINFO_CIPHER_NAMES[]; -extern const char *IWINFO_KMGMT_NAMES[]; -extern const char *IWINFO_AUTH_NAMES[]; +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]; enum iwinfo_opmode { |