Replace FREE method by DEL method as it is a single object.

This commit is contained in:
Patrick Pelissier committed 2017-08-01 23:08:15 +02:00
1 parent eb769c7b20
commit 750de41984
1 file changed
+2 -2
+2 -2
View File
@@ -120,7 +120,7 @@ typedef struct ilist_head_s {
type *obj = M_TYPE_FROM_FIELD(type, it, \
struct ilist_head_s, name); \
M_GET_CLEAR oplist (*obj); \
M_IF_METHOD(FREE, oplist)(M_GET_FREE oplist (obj), (void) 0); \
M_IF_METHOD(DEL, oplist)(M_GET_DEL oplist (obj), (void) 0); \
} \
list->name.next = &list->name; \
list->name.prev = &list->name; \
@@ -348,7 +348,7 @@ typedef struct ilist_head_s {
struct ilist_head_s, name); \
M_C(name, _unlink)(obj); \
M_GET_CLEAR oplist (obj); \
M_IF_METHOD(FREE, oplist)(M_GET_FREE oplist (obj), (void) 0); \
M_IF_METHOD(DEL, oplist)(M_GET_DEL oplist (obj), (void) 0); \
M_C(name, _next)(it); \
} \
\