From 750de419841ecaa7914db21c098e89c7a8416c08 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Tue, 1 Aug 2017 23:08:15 +0200 Subject: [PATCH] Replace FREE method by DEL method as it is a single object. --- m-i-list.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/m-i-list.h b/m-i-list.h index f3e3b221..a9211b69 100644 --- a/m-i-list.h +++ b/m-i-list.h @@ -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); \ } \ \