From 60e1f81ed1d7f8157b1b3aa53daeca6f586e732b Mon Sep 17 00:00:00 2001 From: gastal Date: Fri, 8 Jun 2012 13:22:09 +0000 Subject: [PATCH] Adding EINA_INLIST_CONTAINER_GET to the examples when freeing the list. Author: Guilherme Iscaro git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@71850 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/examples/eina_inlist_01.c | 3 ++- src/examples/eina_inlist_02.c | 3 ++- src/examples/eina_inlist_03.c | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/examples/eina_inlist_01.c b/src/examples/eina_inlist_01.c index 6c6c794..58a3d66 100644 --- a/src/examples/eina_inlist_01.c +++ b/src/examples/eina_inlist_01.c @@ -86,7 +86,8 @@ main(void) while (list) { - Eina_Inlist *aux = list; + struct my_struct *aux = EINA_INLIST_CONTAINER_GET(list, + struct my_struct); list = eina_inlist_remove(list, list); free(aux); } diff --git a/src/examples/eina_inlist_02.c b/src/examples/eina_inlist_02.c index 4c16ec6..79dc0cd 100644 --- a/src/examples/eina_inlist_02.c +++ b/src/examples/eina_inlist_02.c @@ -54,7 +54,8 @@ main(void) while (inlist) { - Eina_Inlist *aux = inlist; + struct my_struct *aux = EINA_INLIST_CONTAINER_GET(inlist, + struct my_struct); inlist = eina_inlist_remove(inlist, inlist); free(aux); } diff --git a/src/examples/eina_inlist_03.c b/src/examples/eina_inlist_03.c index 28706d5..6a9ff64 100644 --- a/src/examples/eina_inlist_03.c +++ b/src/examples/eina_inlist_03.c @@ -63,7 +63,8 @@ main(void) while (list) { - Eina_Inlist *aux = list; + struct my_struct *aux = EINA_INLIST_CONTAINER_GET(list, + struct my_struct); list = eina_inlist_remove(list, list); free(aux); } -- 2.7.4