Return to dev.c CVS log | Up to [local] / src / usr.bin / sndiod |
version 1.18, 2015/09/05 11:19:20 | version 1.19, 2015/11/23 10:02:42 | ||
---|---|---|---|
|
|
||
struct dev *d; | struct dev *d; | ||
for (d = dev_list; d != NULL; d = d->next) { | for (d = dev_list; d != NULL; d = d->next) { | ||
if (num-- == 0) | if (d->num == num) | ||
return d; | return d; | ||
} | } | ||
return NULL; | return NULL; |