projects
/
media-ctl.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Compare name length to avoid false positives in media_get_entity_by_name
[media-ctl.git]
/
src
/
tools.h
diff --git
a/src/tools.h
b/src/tools.h
index
e56edb2
..
de06cb3
100644
(file)
--- a/
src/tools.h
+++ b/
src/tools.h
@@
-23,6
+23,7
@@
#define __TOOLS_H__
#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
+#define FIELD_SIZEOF(t, f) (sizeof(((t*)0)->f))
#endif /* __TOOLS_H__ */