mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
Introduce ARRAY_SIZE() macro
This can be used to clean up the common sizeof(a)/sizeof(a[0]) constructions to use a more readable version. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
2e946249b1
commit
39044a7033
@ -518,6 +518,8 @@ int freq_range_list_includes(const struct wpa_freq_range_list *list,
|
||||
unsigned int freq);
|
||||
char * freq_range_list_str(const struct wpa_freq_range_list *list);
|
||||
|
||||
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
|
||||
|
||||
|
||||
/*
|
||||
* gcc 4.4 ends up generating strict-aliasing warnings about some very common
|
||||
|
Loading…
Reference in New Issue
Block a user