Date: Sat, 25 May 2024 19:31:38 GMT From: Christos Margiolis <christos@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: e279b7aa5d31 - stable/14 - mixer(8): Use mixer_get_path() Message-ID: <202405251931.44PJVcJu043524@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=e279b7aa5d31722d3edc83a47b0814168e5bce69 commit e279b7aa5d31722d3edc83a47b0814168e5bce69 Author: Christos Margiolis <christos@FreeBSD.org> AuthorDate: 2024-05-23 00:57:43 +0000 Commit: Christos Margiolis <christos@FreeBSD.org> CommitDate: 2024-05-25 19:31:12 +0000 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 e3b94b375e1d2098e9e2c07bd0079e92f6a6fe4f) --- usr.sbin/mixer/mixer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/mixer/mixer.c b/usr.sbin/mixer/mixer.c index 284ea955b7b4..07dd16536495 100644 --- a/usr.sbin/mixer/mixer.c +++ b/usr.sbin/mixer/mixer.c @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202405251931.44PJVcJu043524>