From 82fb56886e20e6ed5e97058e68fb32c88029f060 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" 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: https://origsvn.digium.com/svn/asterisk/trunk@200620 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- funcs/func_cdr.c | 4 ++-- funcs/func_channel.c | 2 +- funcs/func_curl.c | 4 ++-- funcs/func_cut.c | 4 ++-- funcs/func_enum.c | 4 ++-- funcs/func_lock.c | 2 +- funcs/func_odbc.c | 8 ++++---- funcs/func_realtime.c | 10 +++++----- funcs/func_vmcount.c | 2 +- 9 files changed, 20 insertions(+), 20 deletions(-) (limited to 'funcs') diff --git a/funcs/func_cdr.c b/funcs/func_cdr.c index 6c80e4f93..2e55d7a0b 100644 --- a/funcs/func_cdr.c +++ b/funcs/func_cdr.c @@ -163,12 +163,12 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") ***/ -enum { +enum cdr_option_flags { OPT_RECURSIVE = (1 << 0), OPT_UNPARSED = (1 << 1), OPT_LAST = (1 << 2), OPT_SKIPLOCKED = (1 << 3), -} cdr_option_flags; +}; AST_APP_OPTIONS(cdr_func_options, { AST_APP_OPTION('l', OPT_LAST), diff --git a/funcs/func_channel.c b/funcs/func_channel.c index b4aa23dd8..5d81ad980 100644 --- a/funcs/func_channel.c +++ b/funcs/func_channel.c @@ -227,7 +227,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") ast_channel_unlock(chan); \ } while (0) -char *transfercapability_table[0x20] = { +static const char * const transfercapability_table[0x20] = { "SPEECH", "UNK", "UNK", "UNK", "UNK", "UNK", "UNK", "UNK", "DIGITAL", "RESTRICTED_DIGITAL", "UNK", "UNK", "UNK", "UNK", "UNK", "UNK", "3K1AUDIO", "DIGITAL_W_TONES", "UNK", "UNK", "UNK", "UNK", "UNK", "UNK", diff --git a/funcs/func_curl.c b/funcs/func_curl.c index 482502558..96af9b468 100644 --- a/funcs/func_curl.c +++ b/funcs/func_curl.c @@ -569,7 +569,7 @@ static int acf_curl2_exec(struct ast_channel *chan, const char *cmd, char *info, return acf_curl_helper(chan, cmd, info, NULL, buf, len); } -struct ast_custom_function acf_curl = { +static struct ast_custom_function acf_curl = { .name = "CURL", .synopsis = "Retrieves the contents of a URL", .syntax = "CURL(url[,post-data])", @@ -580,7 +580,7 @@ struct ast_custom_function acf_curl = { .read2 = acf_curl2_exec, }; -struct ast_custom_function acf_curlopt = { +static struct ast_custom_function acf_curlopt = { .name = "CURLOPT", .synopsis = "Set options for use with the CURL() function", .syntax = "CURLOPT(