mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
Added the safe version of the list_for_each function.
This commit is contained in:
parent
db53ac9b41
commit
6ea4260c1c
6 changed files with 35 additions and 28 deletions
|
|
@ -836,8 +836,8 @@ int snd_mixer_selem_register(snd_mixer_t *mixer, snd_mixer_class_t **classp)
|
|||
snd_mixer_elem_t *snd_mixer_find_selem(snd_mixer_t *mixer,
|
||||
const snd_mixer_selem_id_t *id)
|
||||
{
|
||||
struct list_head *list, *next;
|
||||
list_for_each(list, next, &mixer->elems) {
|
||||
struct list_head *list;
|
||||
list_for_each(list, &mixer->elems) {
|
||||
snd_mixer_elem_t *e;
|
||||
selem_t *s;
|
||||
e = list_entry(list, snd_mixer_elem_t, list);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue