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(