mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
sys/clif: use ARRAY_SIZE
This commit is contained in:
parent
eeca0e3752
commit
46c3964ee8
@ -60,7 +60,7 @@ static const unsigned _attr_to_size[] = {
|
||||
};
|
||||
|
||||
/* do not count extension attr type */
|
||||
#define ATTRS_NUMOF (sizeof(_attr_to_str) / sizeof(_attr_to_str[0]))
|
||||
#define ATTRS_NUMOF ARRAY_SIZE(_attr_to_str)
|
||||
|
||||
ssize_t clif_decode_link(clif_t *link, clif_attr_t *attrs, unsigned attrs_len,
|
||||
const char *buf, size_t maxlen)
|
||||
|
Loading…
Reference in New Issue
Block a user