forked from enlightenment/enlightenment
Don't need to check for . and .. ecore_file_ls removes them.
SVN revision: 16428
This commit is contained in:
parent
ef9b5bd806
commit
de9cde27b6
|
@ -856,11 +856,6 @@ _battery_linux_acpi_check(Battery *ef)
|
||||||
{
|
{
|
||||||
FILE *f;
|
FILE *f;
|
||||||
|
|
||||||
if ((!strcmp(name, ".")) || (!strcmp(name, "..")))
|
|
||||||
{
|
|
||||||
free(name);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
snprintf(buf, sizeof(buf), "/proc/acpi/battery/%s/info", name);
|
snprintf(buf, sizeof(buf), "/proc/acpi/battery/%s/info", name);
|
||||||
f = fopen(buf, "r");
|
f = fopen(buf, "r");
|
||||||
if (f)
|
if (f)
|
||||||
|
|
Loading…
Reference in New Issue