From 5fa0b7c277ad400a1029e71d51e83817414129a5 Mon Sep 17 00:00:00 2001 From: kpfleming Date: Mon, 15 Jun 2009 17:34:30 +0000 Subject: More 'static' qualifiers on module global variables. The 'pglobal' tool is quite handy indeed :-) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@200620 f38db490-d61c-443f-a65b-d21fe96a405b --- pbx/pbx_dundi.c | 2 +- pbx/pbx_lua.c | 4 ++-- pbx/pbx_realtime.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'pbx') diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c index df3845f27..253e17d56 100644 --- a/pbx/pbx_dundi.c +++ b/pbx/pbx_dundi.c @@ -3876,7 +3876,7 @@ AST_APP_OPTIONS(dundi_query_opts, BEGIN_OPTIONS AST_APP_OPTION('b', OPT_BYPASS_CACHE), END_OPTIONS ); -unsigned int dundi_result_id; +static unsigned int dundi_result_id; struct dundi_result_datastore { struct dundi_result results[MAX_RESULTS]; diff --git a/pbx/pbx_lua.c b/pbx/pbx_lua.c index 7bc1a8ad1..ebca7eb89 100644 --- a/pbx/pbx_lua.c +++ b/pbx/pbx_lua.c @@ -93,8 +93,8 @@ static int matchmore(struct ast_channel *chan, const char *context, const char * static int exec(struct ast_channel *chan, const char *context, const char *exten, int priority, const char *callerid, const char *data); AST_MUTEX_DEFINE_STATIC(config_file_lock); -char *config_file_data = NULL; -long config_file_size = 0; +static char *config_file_data = NULL; +static long config_file_size = 0; static struct ast_context *local_contexts = NULL; static struct ast_hashtab *local_table = NULL; diff --git a/pbx/pbx_realtime.c b/pbx/pbx_realtime.c index 3488961c1..7db41571c 100644 --- a/pbx/pbx_realtime.c +++ b/pbx/pbx_realtime.c @@ -54,9 +54,9 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #define EXT_DATA_SIZE 256 -enum { +enum option_flags { OPTION_PATTERNS_DISABLED = (1 << 0), -} option_flags; +}; AST_APP_OPTIONS(switch_opts, { AST_APP_OPTION('p', OPTION_PATTERNS_DISABLED), -- cgit v1.2.3