From nobody Sat May 25 19:31:38 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 4VmsV30dZqz5LT3d; Sat, 25 May 2024 19:31:39 +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 4VmsV265tzz4jhh; Sat, 25 May 2024 19:31:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716665498; 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=iQ3eRUKVcg6+ouUWR91iPUwpmqFzSZrCdhpv1IQS3EE=; b=rLjjGAq0fDaJK02yxMCuWqRal1HfLSYt3NtO277qi/Ff8suECpyEcUWepMLsVmnTnNHSkU 5Vt0jgl9//4aYU+zPgDZmPjrQP/dIVhbJkXARaAxmjG09hQ9cVBgJN8BBk2S+IwbS2g7rg 7KrVPEcssoefDAv09diURSr3od60wKDDEk/Lj/4VchJjvYMwaIlV5Q7e+FdMkYPNd/v5Zl OG5IIxUZrSmssfy3SknAEJp7GHgq5ZvrPytckVFT1YA8rnjZ2lQr3H79droBFjSwfRXyIi 9fFsH60sDdJokzzZviPLB5cdTL4zTrd/suz/BqAWIAJCt/DY3jiEaSK6yZoICw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716665498; a=rsa-sha256; cv=none; b=V8IxLM/0wkxeIZ3CVdjjyTPgmWL3e8roEOppDRBEP9/1jscDKTxiIgn+VPtYxjKYsp6QX+ EkaQgF6dfh2ZZWcvwTm93hMRTsJcdpT815GF6rP7zpDZtEwSDSqGBnUqqNk/TBTrWsqjTY /8RVz6DPfHjwns2YZ7Ya60XXN49tlfhSpXbteh2KsQz3+nj3mZZzaaw2wnLrnIswWRVqm/ OHONHdZ16bb/qvYeTzeEf9gLnDct5F/tl8xCFT3I26nYSfCw0JCz2m+W9vlj3NREjFwrkh 9X3OluPmWa16xukjwOglaVLVrVwIGpezISpJ/5dCfBO79s9tUObOHHw13N9yCg== 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=1716665498; 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=iQ3eRUKVcg6+ouUWR91iPUwpmqFzSZrCdhpv1IQS3EE=; b=qUgzkoitrMoz8sBjZ7OU17XL98S7d+mmi86wLAxPHFQJ62+TM+XMap5trqS6zJxYnSpM39 jwSy113e98zPuUdxD1AwIMyViKt4qzTUnKq9ZtwhvS3SXcS5r8zoc/f32zwHde3ZEZ/55d rXNCRP0JuB+Fxo7XMF91w3wLP8cyLyKEVBrcVhgfIjQAQMga1Ii/krRgIpNnwDYDi1ItLr IwPkZYs5op5sHbB57h12FquqTtqXbC2TVVsJ/eUSOpJ+QBKVVCeLQIHbt42JMqlXrzB67x okepgzonrtuguW0Kb5qAdowejHdfrIU68SbKIK67wJGFxfjBS6C+aUFFqZMD4A== 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 4VmsV24grKzVdw; Sat, 25 May 2024 19:31:38 +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 44PJVcfN043527; Sat, 25 May 2024 19:31:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44PJVcJu043524; Sat, 25 May 2024 19:31:38 GMT (envelope-from git) Date: Sat, 25 May 2024 19:31:38 GMT Message-Id: <202405251931.44PJVcJu043524@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: e279b7aa5d31 - stable/14 - mixer(8): Use mixer_get_path() 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-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: e279b7aa5d31722d3edc83a47b0814168e5bce69 Auto-Submitted: auto-generated The branch stable/14 has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=e279b7aa5d31722d3edc83a47b0814168e5bce69 commit e279b7aa5d31722d3edc83a47b0814168e5bce69 Author: Christos Margiolis AuthorDate: 2024-05-23 00:57:43 +0000 Commit: Christos Margiolis 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);