Enlightenment CVS committal
Author : sebastid
Project : e17
Module : apps/e
Dir : e17/apps/e/src/modules/battery
Modified Files:
e_mod_main.c
Log Message:
Evas_List -> Ecore_List
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/battery/e_mod_main.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -3 -r1.28 -r1.29
--- e_mod_main.c 12 Apr 2005 03:34:28 -0000 1.28
+++ e_mod_main.c 14 Apr 2005 10:52:13 -0000 1.29
@@ -760,8 +760,9 @@
static Status *
_battery_linux_acpi_check(Battery *ef)
{
- Evas_List *bats;
+ Ecore_List *bats;
char buf[4096], buf2[4096];
+ char *name;
int bat_max = 0;
int bat_filled = 0;
@@ -787,13 +788,10 @@
/* Read some information on first run. */
bats = ecore_file_ls("/proc/acpi/battery");
- while (bats)
+ while ((name = ecore_list_next(bats)))
{
FILE *f;
- char *name;
- name = bats->data;
- bats = evas_list_remove_list(bats, bats);
if ((!strcmp(name, ".")) || (!strcmp(name, "..")))
{
free(name);
@@ -853,6 +851,7 @@
}
free(name);
}
+ ecore_list_destroy(bats);
if (ef->battery_prev_drain < 1) ef->battery_prev_drain = 1;
if (bat_drain < 1) bat_drain = ef->battery_prev_drain;
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs