3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-20 19:12:33 +01:00

util: Add align_len macro

This commit is contained in:
Denis Kenzior 2017-01-31 11:50:06 -06:00
parent 4978c31fd7
commit 0932157e4f

View File

@ -26,6 +26,8 @@
#include <stdint.h> #include <stdint.h>
#include <unistd.h> #include <unistd.h>
#define align_len(len, boundary) (((len)+(boundary)-1) & ~((boundary)-1))
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);
const char *util_address_to_string(const uint8_t *addr); const char *util_address_to_string(const uint8_t *addr);