mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 10:39:23 +01:00
util: surround MAC_STR array access with ()
This allows printing from pointer offsets, for example: MAC_STR(buf + 10)
This commit is contained in:
parent
7e95480094
commit
2613564093
@ -29,7 +29,7 @@
|
|||||||
#define align_len(len, boundary) (((len)+(boundary)-1) & ~((boundary)-1))
|
#define align_len(len, boundary) (((len)+(boundary)-1) & ~((boundary)-1))
|
||||||
|
|
||||||
#define MAC "%02x:%02x:%02x:%02x:%02x:%02x"
|
#define MAC "%02x:%02x:%02x:%02x:%02x:%02x"
|
||||||
#define MAC_STR(a) a[0], a[1], a[2], a[3], a[4], a[5]
|
#define MAC_STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5]
|
||||||
|
|
||||||
const char *util_ssid_to_utf8(size_t len, const uint8_t *ssid);
|
const char *util_ssid_to_utf8(size_t len, const uint8_t *ssid);
|
||||||
bool util_ssid_is_utf8(size_t len, const uint8_t *ssid);
|
bool util_ssid_is_utf8(size_t len, const uint8_t *ssid);
|
||||||
|
Loading…
Reference in New Issue
Block a user