From nobody Mon Feb 12 11:00:24 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 4TYM1j1nfsz59ZYq; Mon, 12 Feb 2024 11:00:25 +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 4TYM1j15khz4VZD; Mon, 12 Feb 2024 11:00:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707735625; 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=X32RC32XxwTTI5KevtY0Y4mAMmUzYJ4q/PlbNLPH8yg=; b=G17sVmmofiw3ppid+yxxUiiy2MPHalZrfzCAWXYwvEmBHwan+oumiNpIJJ8ob6zGorQru5 1Th3YA9bbbK8sTXZf1Rbyhg/WUuDTJHuyxM6W+PQPLHT/2Cw65/O6Hgnde3QEFUfI6UPaz 20jNVI1f8yvKJIm52PkAiNUpgAyodqMINyj8bzRiEwKvp6Z5eGLm1ArFiNQkrDq8w3EhVw 4wOWAoM0K66wQeTidOi6eqtXAnmeFdOlcgne2NLdi3TRJi3CZ88Sj/kzgrvZSVH6kh6Ksg ke1VtuE0MA3BEhPPYxA1bTk2oW77I5bLeMv3KcmSFflHPOF2bBf+c/Qb9u2s4g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707735625; a=rsa-sha256; cv=none; b=Dy0BtmEb3ZF491s/xWhbY45D/8rJ2hMNUEpLY2imAoEYhQNl1UhVTkDuNr+9ksbmZGuwmp 8KWvqGvGtLyzfqpME8rU4n5EZO1i10idtel7OXofZHVh2s3mJLUVdI24AfTBNfWIOGF1Hl zuGgqvGyqtQJxHbHVzc9t6PMxqLQZsfuBB72k2Q47/9FMe1aNnAGQ9TSqyAWulR6lfBec3 JRSDv5L81re5REwh8OZAH05wy0z98ak7W8X1v1VHEXBsmgIa0bf0KY+mVJwhJ8uxruQzUp +vFiADl7um+xmVVZthlfXygsy0eMDRDgjfbw5ZQWby9IZ0kWyvHZDJ4tj501vw== 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=1707735625; 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=X32RC32XxwTTI5KevtY0Y4mAMmUzYJ4q/PlbNLPH8yg=; b=kTDlPbQPep4wWlV0ah+VAdAMBSjMLSXJV77rJqnfw4xJGo3p007KsDjKa12ERcPYLJfwmG pPAyv1cVyj+etcJJemhVoQdVW3dDYmIKWx4l88b7zxjh/B508lDlC5Wp8Lnk8EiCtW1IaS xl+abvXzNqJHRFs4vfPhFe/Dc0NSVvFfYQQD39HRKGcdm6srDdZ8026FFB0q+QxL6g313L orqrPtxTO1IN3I19P2g5I7Kzd6m6PIwImg//l+19U/cm0nT0rPSl/1LB2ZrzVwnNNB7jlP qlGRIbeDLpEuzcXUlJoMYoaO7Ayakj+UjX4yvWEatP+d59fQoD6+8TQ5HYRRYA== 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 4TYM1j0CHxzNnD; Mon, 12 Feb 2024 11:00:25 +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 41CB0OJd033431; Mon, 12 Feb 2024 11:00:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CB0Oeb033428; Mon, 12 Feb 2024 11:00:24 GMT (envelope-from git) Date: Mon, 12 Feb 2024 11:00:24 GMT Message-Id: <202402121100.41CB0Oeb033428@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Christos Margiolis Subject: git: 53c768e6836a - main - 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/main X-Git-Reftype: branch X-Git-Commit: 53c768e6836a32c8dcd0b0b422a169ef7a82a3ab Auto-Submitted: auto-generated The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=53c768e6836a32c8dcd0b0b422a169ef7a82a3ab commit 53c768e6836a32c8dcd0b0b422a169ef7a82a3ab Author: Christos Margiolis AuthorDate: 2024-02-12 10:59:32 +0000 Commit: Christos Margiolis CommitDate: 2024-02-12 11:00:05 +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 --- 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)