Use G_N_ELEMENTS macro

This commit is contained in:
Daniel Drake
2007-11-17 23:47:06 +00:00
parent af945b2738
commit fa742a2142
4 changed files with 12 additions and 14 deletions

View File

@@ -28,8 +28,6 @@
#include <fprint.h>
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(*a))
#define container_of(ptr, type, member) ({ \
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
(type *)( (char *)__mptr - offsetof(type,member) );})