Adding EINA_INLIST_CONTAINER_GET to the examples when freeing the list.
authorgastal <gastal>
Fri, 8 Jun 2012 13:22:09 +0000 (13:22 +0000)
committergastal <gastal@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 8 Jun 2012 13:22:09 +0000 (13:22 +0000)
Author:    Guilherme Iscaro <iscaro@profusion.mobi>

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@71850 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/examples/eina_inlist_01.c
src/examples/eina_inlist_02.c
src/examples/eina_inlist_03.c

index 6c6c794..58a3d66 100644 (file)
@@ -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);
      }
index 4c16ec6..79dc0cd 100644 (file)
@@ -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);
      }
index 28706d5..6a9ff64 100644 (file)
@@ -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);
      }