[asterisk-commits] dvossel: branch dvossel/fixtheworld_phase1_step2 r299401 - /team/dvossel/fixt...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Dec 21 21:36:45 UTC 2010


Author: dvossel
Date: Tue Dec 21 15:36:41 2010
New Revision: 299401

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=299401
Log:
rename DEFAULT_INDEX to MAX_INDEX

Modified:
    team/dvossel/fixtheworld_phase1_step2/main/translate.c

Modified: team/dvossel/fixtheworld_phase1_step2/main/translate.c
URL: http://svnview.digium.com/svn/asterisk/team/dvossel/fixtheworld_phase1_step2/main/translate.c?view=diff&rev=299401&r1=299400&r2=299401
==============================================================================
--- team/dvossel/fixtheworld_phase1_step2/main/translate.c (original)
+++ team/dvossel/fixtheworld_phase1_step2/main/translate.c Tue Dec 21 15:36:41 2010
@@ -45,7 +45,7 @@
 /*! This value is used to define how large the tr_matrix and tr_index2format arrays
  *  are defined to be in memory by default.  Once Asterisk can represent more formats
  *  than this number represents with translation, increase it. */
-#define DEFAULT_INDEX 256
+#define MAX_INDEX 256
 
 /*! \brief the list of translators */
 static AST_RWLIST_HEAD_STATIC(translators, ast_translator);
@@ -66,9 +66,9 @@
  * Note: the lock in the 'translators' list is also used to protect
  * this structure.
  */
-static struct translator_path tr_matrix[DEFAULT_INDEX][DEFAULT_INDEX];
+static struct translator_path tr_matrix[MAX_INDEX][MAX_INDEX];
 /*! table for converting index to format id values. */
-static format_t tr_index2format[DEFAULT_INDEX];
+static format_t tr_index2format[MAX_INDEX];
 /*! the current largest index used by the tr_matrix and tr_index2format tables */
 static int cur_max_index = 0;
 




More information about the asterisk-commits mailing list