diff options
author | Russell Bryant <russell@russellbryant.com> | 2006-03-30 06:26:16 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2006-03-30 06:26:16 +0000 |
commit | 03ce34e1aaa2371899011bd2ed5d70180c74b659 (patch) | |
tree | e7092725bdc5ef9ca65c6dff1984e877710b625a /asterisk.c | |
parent | 50f0b1288009aab4166c8d153509c87948581827 (diff) |
convert internal timing to be stored as a flag in the ast_options flags
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16477 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'asterisk.c')
-rw-r--r-- | asterisk.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/asterisk.c b/asterisk.c index 9f3b2342e..5f25b0841 100644 --- a/asterisk.c +++ b/asterisk.c @@ -161,9 +161,6 @@ int option_debug = 0; /*!< Debug level */ double option_maxload = 0.0; /*!< Max load avg on system */ int option_maxcalls = 0; /*!< Max number of active calls */ -int option_internal_timing = 0; - - /*! @} */ char record_cache_dir[AST_CACHE_DIR_LEN] = AST_TMP_DIR; @@ -1975,7 +1972,7 @@ static void ast_readconfig(void) ast_set2_flag(&ast_options, ast_true(v->value), AST_OPT_FLAG_TRANSMIT_SILENCE); /* Enable internal timing */ } else if (!strcasecmp(v->name, "internal_timing")) { - option_internal_timing = ast_true(v->value); + ast_set2_flag(&ast_options, ast_true(v->value), AST_OPT_FLAG_INTERNAL_TIMING); } else if (!strcasecmp(v->name, "maxcalls")) { if ((sscanf(v->value, "%d", &option_maxcalls) != 1) || (option_maxcalls < 0)) { option_maxcalls = 0; @@ -2110,7 +2107,7 @@ int main(int argc, char *argv[]) ast_set_flag(&ast_options, AST_OPT_FLAG_OVERRIDE_CONFIG); break; case 'I': - option_internal_timing = 1; + ast_set_flag(&ast_options, AST_OPT_FLAG_INTERNAL_TIMING); break; case 'i': ast_set_flag(&ast_options, AST_OPT_FLAG_INIT_KEYS); |