On Tue Nov 4 18:32:07 2025 +0000, Rémi Bernon wrote:
It's usually done like this instead, or with LIST_FOR_EACH_ENTRY_SAFE:
struct list *ptr; /* ... */ while ((ptr = list_head(&This->downloaded_waves)) { downloaded_wave = LIST_ENTRY(ptr, struct downloaded_wave, entry);
LIST_FOR_EACH_ENTRY_SAFE on removal is a more obvious pattern.