use eina list macro
authorAndreas Volz <linux@brachttal.net>
Tue, 14 Apr 2009 19:13:36 +0000 (19:13 +0000)
committerAndreas Volz <linux@brachttal.net>
Tue, 14 Apr 2009 19:13:36 +0000 (19:13 +0000)
SVN revision: 40049

src/modules/conf_dpms/e_int_config_dpms.c

index eec73222ecaf52a9b6bbdd368d1314267d8f2d40..cd20a404fe97506b7f451db0699b865a5d496a13 100644 (file)
@@ -329,13 +329,9 @@ static void
 _cb_disable_check_list(void *data, Evas_Object *obj)
 {
    Eina_List *list = (Eina_List*) data;
-   Eina_List *l = NULL;
-   Evas_Object *o = NULL;
+   Eina_List *l;
+   Evas_Object *o;
 
-   for (l = list, o = eina_list_data_get(l); l; l = eina_list_next(l),
-                                                o = eina_list_data_get(l))
-
-   {
+   EINA_LIST_FOREACH(list, l, o)
       e_widget_disabled_set(o, !e_widget_check_checked_get(obj));
-   }
 }