[MPlayer-dev-eng] [PATCH 1/3] Add some missing "const".

Reimar Döffinger Reimar.Doeffinger at gmx.de
Tue Oct 15 20:44:47 CEST 2013


---
 libmpcodecs/ad_mpg123.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libmpcodecs/ad_mpg123.c b/libmpcodecs/ad_mpg123.c
index 42e925e..815d773 100644
--- a/libmpcodecs/ad_mpg123.c
+++ b/libmpcodecs/ad_mpg123.c
@@ -175,13 +175,13 @@ static int compute_bitrate(struct mpg123_frameinfo *i)
  * also throw in ID3v2 info which libmpg123 collects anyway. */
 static void print_header_compact(struct mpg123_frameinfo *i)
 {
-    static const char *smodes[5] = {
+    static const char * const smodes[5] = {
         "stereo", "joint-stereo", "dual-channel", "mono", "invalid"
     };
-    static const char *layers[4] = {
+    static const char * const layers[4] = {
         "Unknown", "I", "II", "III"
     };
-    static const char *versions[4] = {
+    static const char * const versions[4] = {
         "1.0", "2.0", "2.5", "x.x"
     };
 
-- 
1.8.4.rc3



More information about the MPlayer-dev-eng mailing list