From: Kevin P. Fleming Date: Wed, 27 Dec 2006 21:08:30 +0000 (+0000) Subject: move extern declaration for this option to a header file where it belongs X-Git-Tag: 1.4.1~371 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3307ae060ad0fb370caf4d1062b9cab47b762692;p=thirdparty%2Fasterisk.git 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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48998 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/options.h b/include/asterisk/options.h index 3f7569ca1f..5b6ffe0ebf 100644 --- a/include/asterisk/options.h +++ b/include/asterisk/options.h @@ -122,6 +122,8 @@ extern pid_t ast_mainpid; 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 diff --git a/main/asterisk.c b/main/asterisk.c index cf15279571..27f433896b 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -152,8 +152,6 @@ int daemon(int, int); /* defined in libresolv of all places */ */ /*! @{ */ -extern int ast_language_is_prefix; /* XXX move to some header */ - struct ast_flags ast_options = { AST_DEFAULT_OPTIONS }; int option_verbose = 0; /*!< Verbosity level */ diff --git a/main/file.c b/main/file.c index 6c78632626..325676f6e3 100644 --- a/main/file.c +++ b/main/file.c @@ -61,7 +61,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") * (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);