From nobody Tue Feb 13 06:22:25 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 4TYrpV2QNvz59ygD; Tue, 13 Feb 2024 06:22:26 +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 4TYrpT6FtWz4RrR; Tue, 13 Feb 2024 06:22:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707805345; 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=qA2M1p9SSNDzYLhXdvPemxKswIGX+lgKAQfLyXxCFo0=; b=ppL5sgUHqQGy4VuxWvZUFCXpg+B/+uts4YuueKIgwSYfDVw4t29EQcTNIxMkNVBk9Xwny8 wvtnQ2T3ipYqDxA8+lu+HDeGqLi0WNqsK0sv2lwB5t9o+cQsoZ4pDWZUzOFUbTyPBVqLD0 wob/8KrvJ3pr3JeAgwBlE/lmlUV5MmtlSI5L9OJb0PQCf9bjBtI7HgM30cH1pumGHDSRb0 dMBkCKv7hqhasDzFOhA6YlD/Rcr77+U1UuI5WhGhmNvLhJOzXnKoRFv21kOzeRPuF11ZE+ /ASdcJm8EgputQym5TzWy21kLBjd8sg9by1tpHkAEFAuODg4xpG7dhnzplAPdg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707805345; a=rsa-sha256; cv=none; b=t12tzppv1/l9GLYzTRGIYcYkiGrTfqD1WoCyU4SK/y5cYXAYN4IWdHbnrpxT8lPgslJRtF kwGvmSVy9QDj7s04kmHXEorhzRdFkZNFfK3OqD2UQqP3YiRP4VVhZ+DjGJuvvpw14uywCA lAp/xZHuJ0LX0B6pecSicB/diUbDnPYHlxSjAs0KiY54IVKGKsmkilsj/nA13QcHYqKolZ Uk/nuxdsPZCq1dJTtlgRotc2LrgaOHUQcW4d9flmX2/dJcgcSPQ6iF8si1lqB5bvYcULkK royjDMqTSXlP2QrtIQRDDyOyxlaVBqLbVacowB2qcDsuvHVIlFmEIWUeS2eeRQ== 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=1707805345; 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=qA2M1p9SSNDzYLhXdvPemxKswIGX+lgKAQfLyXxCFo0=; b=v1OHXvO82QD4o0nE03ZgrsnsiqtLJxe9bzxrSmEZkp2pmUIpqSjJdx71wSloDNoBXtiYQt wJ/yk5wDcbJQ09wsdcyklVjusRP/xxOZwakW3ORBgYHcoH9BUK6cTrAmlWEvPH9dBCjKLZ rA1j1XjkwAbTYr4N1r80pG6AXft6YvMJVh9SvGLRr6czc7OwoMwXO5NMnSuWnS+FwadVY5 PQ4GciFDqvwjkcC4w0QmpbevbKy4EMpRz0vMbygrNZtg4EEhRdTahlRSathrBjT2cxFMFN mS3fy+rpSzFNStiIkX98nLzKF1yADAex5cy9gLj++qZ9+pu1iisQ1trq4Kt9Cg== 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 4TYrpT5Lj0z142f; Tue, 13 Feb 2024 06:22: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 41D6MPND091245; Tue, 13 Feb 2024 06:22:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D6MPui091242; Tue, 13 Feb 2024 06:22:25 GMT (envelope-from git) Date: Tue, 13 Feb 2024 06:22:25 GMT Message-Id: <202402130622.41D6MPui091242@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 0789c3bd2c45 - main - share/examples/sound: Fix spelling "controller" 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: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0789c3bd2c4597e40b1d2556d21bfd10ff628a0a Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=0789c3bd2c4597e40b1d2556d21bfd10ff628a0a commit 0789c3bd2c4597e40b1d2556d21bfd10ff628a0a Author: Assume-Zhan AuthorDate: 2024-01-05 04:13:58 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 06:18:04 +0000 share/examples/sound: Fix spelling "controller" Event: Advanced UNIX Programming Course (Fall’23) at NTHU. Pull Request: https://github.com/freebsd/freebsd-src/pull/994 --- share/examples/sound/midi.c | 4 ++-- share/examples/sound/ossmidi.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/share/examples/sound/midi.c b/share/examples/sound/midi.c index 7149bcb31c82..6d6ac9aa0fcd 100644 --- a/share/examples/sound/midi.c +++ b/share/examples/sound/midi.c @@ -49,7 +49,7 @@ main() switch (event.type) { case NOTE_ON: case NOTE_OFF: - case CONTROLER_ON: + case CONTROLLER_ON: if ((l = read(midi_config.fd, &(event.note), sizeof(event.note))) == -1) { perror("Error reading MIDI note"); exit(1); @@ -65,7 +65,7 @@ main() case NOTE_OFF: printf("Channel %d, note %d, velocity %d\n", event.channel, event.note, event.velocity); break; - case CONTROLER_ON: + case CONTROLLER_ON: printf("Channel %d, controller %d, value %d\n", event.channel, event.controller, event.value); break; default: diff --git a/share/examples/sound/ossmidi.h b/share/examples/sound/ossmidi.h index 60bf5e41173e..99a6bacffe73 100644 --- a/share/examples/sound/ossmidi.h +++ b/share/examples/sound/ossmidi.h @@ -33,7 +33,7 @@ #define NOTE_ON 0x90 #define NOTE_OFF 0x80 #define CHANNEL_MASK 0xF -#define CONTROLER_ON 0xB0 +#define CONTROLLER_ON 0xB0 typedef struct midi_event { unsigned char type;