From 82fb56886e20e6ed5e97058e68fb32c88029f060 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Mon, 15 Jun 2009 17:34:30 +0000 Subject: [PATCH] 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 --- cdr/cdr_manager.c | 2 +- formats/format_wav_gsm.c | 2 +- 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 +- include/asterisk/calendar.h | 2 +- main/cli.c | 2 +- main/db.c | 2 +- main/devicestate.c | 2 +- main/event.c | 2 +- main/features.c | 14 +++++++------- main/file.c | 2 +- main/http.c | 2 +- main/image.c | 2 +- main/loader.c | 2 +- main/logger.c | 2 +- main/manager.c | 14 +++++++------- main/xmldoc.c | 2 +- pbx/pbx_dundi.c | 2 +- pbx/pbx_lua.c | 4 ++-- pbx/pbx_realtime.c | 4 ++-- res/res_calendar.c | 18 +++++++++--------- res/res_calendar_caldav.c | 4 ++-- res/res_calendar_exchange.c | 4 ++-- res/res_calendar_icalendar.c | 4 ++-- res/res_config_pgsql.c | 4 ++-- res/res_jabber.c | 4 ++-- res/res_smdi.c | 2 +- res/res_snmp.c | 2 +- 35 files changed, 73 insertions(+), 73 deletions(-) diff --git a/cdr/cdr_manager.c b/cdr/cdr_manager.c index aff60d355d..49f826d9ea 100644 --- a/cdr/cdr_manager.c +++ b/cdr/cdr_manager.c @@ -46,7 +46,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") static char *name = "cdr_manager"; static int enablecdr = 0; -struct ast_str *customfields; +static struct ast_str *customfields; static int manager_log(struct ast_cdr *cdr); diff --git a/formats/format_wav_gsm.c b/formats/format_wav_gsm.c index 737be96d7d..aa3dd2eee2 100644 --- a/formats/format_wav_gsm.c +++ b/formats/format_wav_gsm.c @@ -48,7 +48,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #define MSGSM_SAMPLES (2*GSM_SAMPLES) /* samples in an MSGSM block */ /* begin binary data: */ -char msgsm_silence[] = /* 65 */ +static char msgsm_silence[] = /* 65 */ {0x48,0x17,0xD6,0x84,0x02,0x80,0x24,0x49,0x92,0x24,0x89,0x02,0x80,0x24,0x49 ,0x92,0x24,0x89,0x02,0x80,0x24,0x49,0x92,0x24,0x89,0x02,0x80,0x24,0x49,0x92 ,0x24,0x09,0x82,0x74,0x61,0x4D,0x28,0x00,0x48,0x92,0x24,0x49,0x92,0x28,0x00 diff --git a/funcs/func_cdr.c b/funcs/func_cdr.c index 6c80e4f931..2e55d7a0b4 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 b4aa23dd8e..5d81ad9808 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 482502558e..96af9b4682 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(