Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Apr 2026 16:24:47 +0000
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Cc:        Raphael 'kena' Poss <knz@thaumogen.net>
Subject:   git: 690ef95b3354 - main - speaker(4): move static data to bss
Message-ID:  <69eb994f.394f9.596c60d6@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=690ef95b3354ac7a80aa469fa7a8f15f07962f83

commit 690ef95b3354ac7a80aa469fa7a8f15f07962f83
Author:     Raphael 'kena' Poss <knz@thaumogen.net>
AuthorDate: 2026-01-11 21:07:35 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2026-04-24 16:23:06 +0000

    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
---
 sys/dev/speaker/spkr.c | 4 ++--
 1 file 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,


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69eb994f.394f9.596c60d6>