mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
mixer(8): Use mixer_get_path()
Sponsored by: The FreeBSD Foundation
MFC after: 1 day
Reviewed by: dev_submerge.ch
Differential Revision: https://reviews.freebsd.org/D45276
(cherry picked from commit e3b94b375e)
This commit is contained in:
parent
0a1eb394d7
commit
e279b7aa5d
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ main(int argc, char *argv[])
|
|||
if ((n = mixer_get_nmixers()) < 0)
|
||||
errx(1, "no mixers present in the system");
|
||||
for (i = 0; i < n; i++) {
|
||||
(void)snprintf(buf, sizeof(buf), "/dev/mixer%d", i);
|
||||
(void)mixer_get_path(buf, sizeof(buf), i);
|
||||
if ((m = mixer_open(buf)) == NULL)
|
||||
continue;
|
||||
initctls(m);
|
||||
|
|
|
|||
Loading…
Reference in a new issue