From: Andre Noll Date: Sun, 30 Sep 2018 21:39:58 +0000 (+0200) Subject: mp3_afh: Move mode_text[] into header_mode(). X-Git-Tag: v0.6.3~48 X-Git-Url: http://git.tuebingen.mpg.de/?a=commitdiff_plain;h=6a0aa10c781d3535670682c127bb32b91e37bbda;hp=6a0aa10c781d3535670682c127bb32b91e37bbda;p=paraslash.git 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. ---