aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphael 'kena' Poss <knz@thaumogen.net>2026-01-11 21:07:35 +0000
committerWarner Losh <imp@FreeBSD.org>2026-04-24 16:23:06 +0000
commit690ef95b3354ac7a80aa469fa7a8f15f07962f83 (patch)
tree10e45bf451d07f23123d5f3a0f32d0c73d35c960
parente2199dc33f16332b3e138da3059ba57c25ef713d (diff)
speaker(4): move static data to bss
Signed-off-by: Raphael Poss <knz@thaumogen.net> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1922
-rw-r--r--sys/dev/speaker/spkr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/speaker/spkr.c b/sys/dev/speaker/spkr.c
index 7aaebd225512..08cac66f175a 100644
--- a/sys/dev/speaker/spkr.c
+++ b/sys/dev/speaker/spkr.c
@@ -154,7 +154,7 @@ static bool octprefix; /* override current octave-tracking state? */
#define DENOM_MULT 2 /* denominator of dot multiplier */
/* letter to half-tone: A B C D E F G */
-static int notetab[8] = {9, 11, 0, 2, 4, 5, 7};
+static const int notetab[8] = {9, 11, 0, 2, 4, 5, 7};
/*
* This is the American Standard A440 Equal-Tempered scale with frequencies
@@ -162,7 +162,7 @@ static int notetab[8] = {9, 11, 0, 2, 4, 5, 7};
* our octave 0 is standard octave 2.
*/
#define OCTAVE_NOTES 12 /* semitones per octave */
-static int pitchtab[] =
+static const int pitchtab[] =
{
/* C C# D D# E F F# G G# A A# B*/
/* 0 */ 65, 69, 73, 78, 82, 87, 93, 98, 103, 110, 117, 123,