]> git.tuebingen.mpg.de Git - paraslash.git/commit
mp3_afh: Move mode_text[] into header_mode().
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 30 Sep 2018 21:39:58 +0000 (23:39 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 28 Jan 2019 20:52:29 +0000 (21:52 +0100)
commit6a0aa10c781d3535670682c127bb32b91e37bbda
tree6f3c29763303ead830e5f20cd555490a9c2da5b1
parente7f035b3ad7ecc64ec87d9ce890f89365dec1411
mp3_afh: Move mode_text[] into header_mode().

The array is only used in header_mode(), so it should be local to
the function.  Also, it's confusing to let the last element play the
role of the invalid header mode, and it's clearer to use ARRAY_SIZE()
instead of spelling out the index of the last element. Next, it's
unnecessary to write to the mp3header structure, so avoid this and
mark the pointer argument const.  Finally, the patch makes the array
constant, not only the mode strings.
mp3_afh.c