mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
mixer(3): Do not hardcode "/dev/mixer"
We have BASEPATH defined. Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Reviewed by: dev_submerge.ch, markj Differential Revision: https://reviews.freebsd.org/D43812
This commit is contained in:
parent
5daa7cf42f
commit
53c768e683
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ mixer_open(const char *name)
|
|||
dunit:
|
||||
if ((m->unit = mixer_get_dunit()) < 0)
|
||||
goto fail;
|
||||
(void)snprintf(m->name, sizeof(m->name), "/dev/mixer%d", m->unit);
|
||||
(void)snprintf(m->name, sizeof(m->name), BASEPATH "%d", m->unit);
|
||||
}
|
||||
|
||||
if ((m->fd = open(m->name, O_RDWR)) < 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue