From nobody Fri Oct 18 21:38:19 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 4XVdNq4gTMz5Yydc; Fri, 18 Oct 2024 21:38:19 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XVdNq4Bjlz4PpD; Fri, 18 Oct 2024 21:38:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729287499; 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=VEml2+BPMpURsO+KXOZC+e6CyAeg0FGGZvnpqxFMrXQ=; b=Gep25WjGV/7r7Cs55UwstIVJ7OQ+dp/xwdqUqI4EuOo8JgvaJdwyKQTju1/oJaB8oK9XpY h1xuILMBwbiXzAvU3oR0W0O+w+33Aq+ix8Vt1xCPPc8Lmb83/qFeZTLRjAEBpRyz5zzjhi goFQPXOKJjgR5qGXwNN7HyO9WDV3LasAhvvf1VZNDtujRWw0kqywnibq2qLPnJYnlEbfZ0 3J9gMC2mYqRL73q8l6GoKQdec98Lw/cM81tMBns8zRlTTnetH/tRpCMO8M7KmnlE6tkrGo UwkcKMd6dfJ8iGvApI1E26yplCyKTtN8S0cuPHHtVcj7LWXuZnj+x91swHGXoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729287499; 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=VEml2+BPMpURsO+KXOZC+e6CyAeg0FGGZvnpqxFMrXQ=; b=U6PvJpIFnewekR7iSL9IxxQrPE73wMfNrDYiJQkXD3B1Z1VuvXRGKn5r5slWtbiIY2baKA VLN59Exhu7Jh5qg/ZSNcF8dgnTPfW/hGOUXumBuVLW5qUr6LbjZSGtLK/WeSPM74ztYWEb P2d8WX7SFg0BbV2ZXxOZ7GkwBWIllTbb3EoG8UiWmY7L/WJOrWqWZ3hsWKiISCMqWY1J81 ErjJjUn3EUXFUn+iXwCAaycjUCiwEB6HYO9vzs5pzn8p+CW3Dnc5Q8XLDmvxJAX3kPV3+r 5KxHKexC/Mki4IJyTUvh+pJUg8pW1emDEWDdWq6wb5ycpoUk7tn8JaVM/5beIA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729287499; a=rsa-sha256; cv=none; b=mgsrJFgwOfTCi4H9IVdm/zK6XcKr1+zkqDlFqapISWMtIH9IWkz3Is4sQlxAER8WDpHYtC iJ2VIh4oLAJfInRyAYFNUIZEPILR/o4Bn9By1Wtq6ow+kfO6EE1xeQA6w95+qyzh1WW37h 7xXguP9x9jnhBcQ1gYrVS6/3omULImVWqYF1sc3a+qHzOhYQypfKGnrN1Th+xdc2NVhlfM GYqAH12mLPyxJOJRQeRw4BwhQ8bk2LQVRIOBgGHttC2sdXlYqDqF7Yqi7Oe7bqR703QvZV 1dQYJ/uBEwxQRUs/AvxAnjo6mhjWXDrdXzoz26zl4OMyeTZPdL4+IJirK2U4Sg== 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 4XVdNq3g7lzqKr; Fri, 18 Oct 2024 21:38:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49ILcJHG094995; Fri, 18 Oct 2024 21:38:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49ILcJjp094992; Fri, 18 Oct 2024 21:38:19 GMT (envelope-from git) Date: Fri, 18 Oct 2024 21:38:19 GMT Message-Id: <202410182138.49ILcJjp094992@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: b8007cfdb72c - main - mididump: fix gcc build 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: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b8007cfdb72c1be27d1d93937886fd60f21915ab Auto-Submitted: auto-generated The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=b8007cfdb72c1be27d1d93937886fd60f21915ab commit b8007cfdb72c1be27d1d93937886fd60f21915ab Author: Gleb Smirnoff AuthorDate: 2024-10-18 21:38:04 +0000 Commit: Gleb Smirnoff CommitDate: 2024-10-18 21:38:04 +0000 mididump: fix gcc build --- usr.bin/mididump/mididump.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.bin/mididump/mididump.c b/usr.bin/mididump/mididump.c index 9c8fe62c9859..16bd775f10d4 100644 --- a/usr.bin/mididump/mididump.c +++ b/usr.bin/mididump/mididump.c @@ -44,10 +44,10 @@ #define NOTE2FREQ(n) (440 * pow(2.0f, ((float)n - 69) / 12)) #define CHAN_MASK 0x0f -struct note { +static struct note { const char *name; const char *alt; -} static notes[] = { +} notes[] = { { "C", NULL }, { "C#", "Db" }, { "D", NULL }, @@ -211,7 +211,7 @@ main(int argc, char *argv[]) case 0xb0 ... 0xbf: b1 = read_byte(fd); b2 = read_byte(fd); - if (b1 < 0 || b1 > ARRLEN(ctls) - 1) + if (b1 > ARRLEN(ctls) - 1) break; printf("Control/Mode change channel=%d, " "control=%d (%s), value=%d",