Fix MacOS compilation.
This commit is contained in:
parent
d559ae3537
commit
a49c1e1473
|
@ -214,17 +214,16 @@ disks_get(void)
|
||||||
|
|
||||||
EINA_LIST_FREE(devs, name)
|
EINA_LIST_FREE(devs, name)
|
||||||
{
|
{
|
||||||
name = l->data;
|
|
||||||
if (!strncmp(name, "disk", 4))
|
if (!strncmp(name, "disk", 4))
|
||||||
{
|
{
|
||||||
snprintf(buf, sizeof(buf), "/dev/%s", name);
|
snprintf(buf, sizeof(buf), "/dev/%s", name);
|
||||||
list = eina_list_append(list, strdup(buf));
|
list = eina_list_append(list, strdup(buf));
|
||||||
}
|
}
|
||||||
l = l->next;
|
free(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (devs)
|
if (devs)
|
||||||
list_free(devs);
|
eina_list_free(devs);
|
||||||
|
|
||||||
list = eina_list_sort(list, eina_list_count(list), _cmp_cb);
|
list = eina_list_sort(list, eina_list_count(list), _cmp_cb);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue