From nobody Mon Feb 26 23:22:49 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TkGqs6bBfz5BtbS; Mon, 26 Feb 2024 23:22:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TkGqs4p5zz4V4K; Mon, 26 Feb 2024 23:22:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708989769; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KKIrBXlwCzu5UbLK8jUJ60vnUGCGEpIesdi4KGhm6y4=; b=Z/bi4Ne8TYdv1ZhLdZGsGsoSTnwpJbx17wMZPzZ+Enw5pgJ2uY1RAjOqrlO4h7a8jQuzwH 8kCd61FqaynKquPd/aIzBF6DS0H5TpMM5SGBe9hoMiRjp3uWzuH5MtcYWzHrJkBsz55rrL e0ZcEjKfswR2BkeP+nfb3MlPvaL0YBpwAjqTPke1IkfS/imsdmOAAnG9PavyvZIUIO1Z2J TiXz3Dx71T8yROo4+xFQdekmh5l7upMPZsoz5DMkWxhGFtoBJU+1vtjctkdfQ8X7alhv+4 HPngUTfLMYgFubTW4iUVIa5sx8bRnVHERsaeVwxvpj916/3HiuIfhjWl7lj0cQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708989769; a=rsa-sha256; cv=none; b=DnrF/uMOZ5pj7nS2gdeNjfsccvdOroj9tosC3k/OWjWUZsCHd8CQIIZDtFU19hPOfxVFLa gTBpGehwHXQwzJLUo9rnbIMM21xofmG2vs6zWdixHRx0WvkXdidx9h/+2RbFsoCpudMYlG q1J5jtCYa8Q0gYtvQNr9iLtJOhryBiJKwGJGoN110/WYcWVFm3SwCb/dIWTsjHgFT0Lkki sxzozKy5jOq8Lg7gxvWCu8nuwuljT6VhDgGvElTUbgySWKGzqM6EMdnhWsqpsCF+GEDyRK 1QPadxKOqPR4X5AthMWfiRTsHaXU4CjUC+VJUPgYuDXdi1l0HQvaeOa2+F9dhQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708989769; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KKIrBXlwCzu5UbLK8jUJ60vnUGCGEpIesdi4KGhm6y4=; b=Uw1iMCrPuTKcuhjVasmddMJA5mq/BAQ1GohZhoAq8RK5Z8Mso7Ux85FEuOgXCKzPesCcSq SuTvRhm14M2TtooMf9FWQQccvD+KaE7amvAMP+UgiVk2Bi2XFRlEyvbUodT3+J2BkcJyAi pmeC+JPYTh3qt+jDGbDCdhMZSMd3DygpGlMjv+P2kLVACQaA9SjhI6ZoMd/fp0TIOuFiw/ mOxMQsa2JuEi+Gtt2fQTJ3RPLopKoBRQHC1VWy2fZmQW7h0/iVDUMPl5X4EDUJ9j+e5ZXa gPQdj5c3yN2OOH0BX4X6sZlh6w2AZDon3SrhTJlSyqv9PVG2EtO/H7w0ruuQaA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TkGqs3qlHzpJx; Mon, 26 Feb 2024 23:22:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41QNMnTA028557; Mon, 26 Feb 2024 23:22:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41QNMn95028554; Mon, 26 Feb 2024 23:22:49 GMT (envelope-from git) Date: Mon, 26 Feb 2024 23:22:49 GMT Message-Id: <202402262322.41QNMn95028554@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Christos Margiolis Subject: git: 7e984a34c304 - stable/14 - mixer(3): Do not hardcode "/dev/mixer" List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: christos X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 7e984a34c3048404400e8dba517f14ba44078e32 Auto-Submitted: auto-generated The branch stable/14 has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=7e984a34c3048404400e8dba517f14ba44078e32 commit 7e984a34c3048404400e8dba517f14ba44078e32 Author: Christos Margiolis AuthorDate: 2024-02-12 10:59:32 +0000 Commit: Christos Margiolis CommitDate: 2024-02-26 23:22:31 +0000 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 (cherry picked from commit 53c768e6836a32c8dcd0b0b422a169ef7a82a3ab) --- lib/libmixer/mixer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libmixer/mixer.c b/lib/libmixer/mixer.c index d78ca6e0fc87..93ace1d0c69b 100644 --- a/lib/libmixer/mixer.c +++ b/lib/libmixer/mixer.c @@ -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)