diff options
author | David Härdeman <david@hardeman.nu> | 2015-07-24 11:27:07 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2015-07-24 11:27:07 +0200 |
commit | cf94c763b15d7fc98d5e3f16ddbfcd8b79b99536 (patch) | |
tree | d491bb31ec5a262395e30704871df2f01f48247f /utils.h | |
parent | 10836ae78302aa778553300167f6cdebdf8d884b (diff) |
Interim protocol support...
Diffstat (limited to 'utils.h')
-rw-r--r-- | utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -44,6 +44,8 @@ static inline bool list_empty(struct list_head *list) return list->next == list; } +#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) + #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) #define container_of(ptr, type, member) ({ \ |