!wl_list_empty() is now used instead of wl_list_length() > 0

This commit is contained in:
Scoopta 2020-03-13 21:58:54 -07:00
parent 4f4b85eee6
commit 50719af3dd

View File

@ -707,7 +707,7 @@ struct wl_list* wofi_read_cache(struct mode* mode) {
free(line);
fclose(file);
}
while(wl_list_length(&lines) > 0) {
while(!wl_list_empty(&lines)) {
uint64_t smallest = UINT64_MAX;
struct cache_line* node, *smallest_node = NULL;
wl_list_for_each(node, &lines, link) {