Constify the list of codec preferences.
authorRussell Bryant <russell@russellbryant.com>
Thu, 1 Mar 2007 20:24:59 +0000 (20:24 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 1 Mar 2007 20:24:59 +0000 (20:24 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@57293 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/channel.c

index 4cd7f35..3a3656c 100644 (file)
@@ -571,7 +571,7 @@ int ast_best_codec(int fmts)
        /* This just our opinion, expressed in code.  We are asked to choose
           the best codec to use, given no information */
        int x;
-       static int prefs[] =
+       static const int prefs[] =
        {
                /*! Okay, ulaw is used by all telephony equipment, so start with it */
                AST_FORMAT_ULAW,