summaryrefslogtreecommitdiff
path: root/funcs
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2012-07-18 17:18:20 +0000
committerKevin P. Fleming <kpfleming@digium.com>2012-07-18 17:18:20 +0000
commit79087cbbd515a108188b93cf732e5baa1b4f28d0 (patch)
tree127ee795efcf82c1d6604ec510ddca5e00fb99c8 /funcs
parent8401e813833a6ef09073325409cd65b6840943b3 (diff)
Ensure that all ast_datastore_info structures are 'const'.
While addressing a bug, I came across a instance of 'struct ast_datastore_info' that was not declared 'const'. Since the API already expects them to be 'const', this patch changes the declarations of all existing instances that were not already declared that way. ........ Merged revisions 370183 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 370184 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@370187 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'funcs')
-rw-r--r--funcs/func_curl.c2
-rw-r--r--funcs/func_global.c2
-rw-r--r--funcs/func_lock.c2
-rw-r--r--funcs/func_odbc.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/funcs/func_curl.c b/funcs/func_curl.c
index a4328b923..2305d3719 100644
--- a/funcs/func_curl.c
+++ b/funcs/func_curl.c
@@ -174,7 +174,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
static void curlds_free(void *data);
-static struct ast_datastore_info curl_info = {
+static const struct ast_datastore_info curl_info = {
.type = "CURL",
.destroy = curlds_free,
};
diff --git a/funcs/func_global.c b/funcs/func_global.c
index de8de8a50..e16b60ac1 100644
--- a/funcs/func_global.c
+++ b/funcs/func_global.c
@@ -88,7 +88,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
static void shared_variable_free(void *data);
-static struct ast_datastore_info shared_variable_info = {
+static const struct ast_datastore_info shared_variable_info = {
.type = "SHARED_VARIABLES",
.destroy = shared_variable_free,
};
diff --git a/funcs/func_lock.c b/funcs/func_lock.c
index 9394b3918..d8db10e84 100644
--- a/funcs/func_lock.c
+++ b/funcs/func_lock.c
@@ -99,7 +99,7 @@ static void lock_fixup(void *data, struct ast_channel *oldchan, struct ast_chann
static int unloading = 0;
static pthread_t broker_tid = AST_PTHREADT_NULL;
-static struct ast_datastore_info lock_info = {
+static const struct ast_datastore_info lock_info = {
.type = "MUTEX",
.destroy = lock_free,
.chan_fixup = lock_fixup,
diff --git a/funcs/func_odbc.c b/funcs/func_odbc.c
index 5b24878a6..d6a11cd1a 100644
--- a/funcs/func_odbc.c
+++ b/funcs/func_odbc.c
@@ -119,7 +119,7 @@ struct acf_odbc_query {
static void odbc_datastore_free(void *data);
-static struct ast_datastore_info odbc_info = {
+static const struct ast_datastore_info odbc_info = {
.type = "FUNC_ODBC",
.destroy = odbc_datastore_free,
};