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
This commit is contained in:
Kevin P. Fleming
2009-06-15 17:34:30 +00:00
parent 4379249674
commit 82fb56886e
35 changed files with 73 additions and 73 deletions

View File

@@ -163,12 +163,12 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
</function>
***/
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),

View File

@@ -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",

View File

@@ -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(<option>)",

View File

@@ -305,12 +305,12 @@ static int acf_cut_exec2(struct ast_channel *chan, const char *cmd, char *data,
return ret;
}
struct ast_custom_function acf_sort = {
static struct ast_custom_function acf_sort = {
.name = "SORT",
.read = acf_sort_exec,
};
struct ast_custom_function acf_cut = {
static struct ast_custom_function acf_cut = {
.name = "CUT",
.read = acf_cut_exec,
.read2 = acf_cut_exec2,

View File

@@ -216,7 +216,7 @@ static int function_enum(struct ast_channel *chan, const char *cmd, char *data,
return 0;
}
unsigned int enum_datastore_id;
static unsigned int enum_datastore_id;
struct enum_result_datastore {
struct enum_context *context;
@@ -243,7 +243,7 @@ static void erds_destroy_cb(void *data)
erds_destroy(erds);
}
const struct ast_datastore_info enum_result_datastore_info = {
static const struct ast_datastore_info enum_result_datastore_info = {
.type = "ENUMQUERY",
.destroy = erds_destroy_cb,
};

View File

@@ -84,7 +84,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
AST_LIST_HEAD_STATIC(locklist, lock_frame);
static AST_LIST_HEAD_STATIC(locklist, lock_frame);
static void lock_free(void *data);
static int unloading = 0;

View File

@@ -99,10 +99,10 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
static char *config = "func_odbc.conf";
enum {
enum odbc_option_flags {
OPT_ESCAPECOMMAS = (1 << 0),
OPT_MULTIROW = (1 << 1),
} odbc_option_flags;
};
struct acf_odbc_query {
AST_RWLIST_ENTRY(acf_odbc_query) list;
@@ -118,7 +118,7 @@ struct acf_odbc_query {
static void odbc_datastore_free(void *data);
struct ast_datastore_info odbc_info = {
static struct ast_datastore_info odbc_info = {
.type = "FUNC_ODBC",
.destroy = odbc_datastore_free,
};
@@ -135,7 +135,7 @@ struct odbc_datastore {
char names[0];
};
AST_RWLIST_HEAD_STATIC(queries, acf_odbc_query);
static AST_RWLIST_HEAD_STATIC(queries, acf_odbc_query);
static int resultcount = 0;

View File

@@ -410,29 +410,29 @@ static int function_realtime_readdestroy(struct ast_channel *chan, const char *c
return 0;
}
struct ast_custom_function realtime_function = {
static struct ast_custom_function realtime_function = {
.name = "REALTIME",
.read = function_realtime_read,
.write = function_realtime_write,
};
struct ast_custom_function realtimefield_function = {
static struct ast_custom_function realtimefield_function = {
.name = "REALTIME_FIELD",
.read = realtimefield_read,
.write = function_realtime_write,
};
struct ast_custom_function realtimehash_function = {
static struct ast_custom_function realtimehash_function = {
.name = "REALTIME_HASH",
.read = realtimefield_read,
};
struct ast_custom_function realtime_store_function = {
static struct ast_custom_function realtime_store_function = {
.name = "REALTIME_STORE",
.write = function_realtime_store,
};
struct ast_custom_function realtime_destroy_function = {
static struct ast_custom_function realtime_destroy_function = {
.name = "REALTIME_DESTROY",
.read = function_realtime_readdestroy,
};

View File

@@ -94,7 +94,7 @@ static int acf_vmcount_exec(struct ast_channel *chan, const char *cmd, char *arg
return 0;
}
struct ast_custom_function acf_vmcount = {
static struct ast_custom_function acf_vmcount = {
.name = "VMCOUNT",
.read = acf_vmcount_exec,
.read_max = 12,