[svn-commits] kpfleming: branch 1.4 r48998 - in /branches/1.4: include/asterisk/ main/

svn-commits at lists.digium.com svn-commits at lists.digium.com
Wed Dec 27 14:08:31 MST 2006


Author: kpfleming
Date: Wed Dec 27 15:08:30 2006
New Revision: 48998

URL: http://svn.digium.com/view/asterisk?view=rev&rev=48998
Log:
move extern declaration for this option to a header file where it belongs
provide an initial value for 'languageprefix' option, instead of relying on randomness to provide a useful value

Modified:
    branches/1.4/include/asterisk/options.h
    branches/1.4/main/asterisk.c
    branches/1.4/main/file.c

Modified: branches/1.4/include/asterisk/options.h
URL: http://svn.digium.com/view/asterisk/branches/1.4/include/asterisk/options.h?view=diff&rev=48998&r1=48997&r2=48998
==============================================================================
--- branches/1.4/include/asterisk/options.h (original)
+++ branches/1.4/include/asterisk/options.h Wed Dec 27 15:08:30 2006
@@ -122,6 +122,8 @@
 extern char record_cache_dir[AST_CACHE_DIR_LEN];
 extern char debug_filename[AST_FILENAME_MAX];
 
+extern int ast_language_is_prefix;
+
 #if defined(__cplusplus) || defined(c_plusplus)
 }
 #endif

Modified: branches/1.4/main/asterisk.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/asterisk.c?view=diff&rev=48998&r1=48997&r2=48998
==============================================================================
--- branches/1.4/main/asterisk.c (original)
+++ branches/1.4/main/asterisk.c Wed Dec 27 15:08:30 2006
@@ -151,8 +151,6 @@
   Some of them can be changed in the CLI 
  */
 /*! @{ */
-
-extern int ast_language_is_prefix;	/* XXX move to some header */
 
 struct ast_flags ast_options = { AST_DEFAULT_OPTIONS };
 

Modified: branches/1.4/main/file.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/file.c?view=diff&rev=48998&r1=48997&r2=48998
==============================================================================
--- branches/1.4/main/file.c (original)
+++ branches/1.4/main/file.c Wed Dec 27 15:08:30 2006
@@ -61,7 +61,7 @@
  * (i.e. en/digits/1.gsm, it/digits/1.gsm or default to digits/1.gsm).
  * The latter permits a language to be entirely in one directory.
  */
-int ast_language_is_prefix;
+int ast_language_is_prefix = 0;
 
 static AST_LIST_HEAD_STATIC(formats, ast_format);
 



More information about the svn-commits mailing list