From 79087cbbd515a108188b93cf732e5baa1b4f28d0 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Wed, 18 Jul 2012 17:18:20 +0000 Subject: 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 --- main/pbx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/pbx.c') diff --git a/main/pbx.c b/main/pbx.c index cbfbafa69..a1ed1b52d 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -3437,7 +3437,7 @@ static void exception_store_free(void *data) ast_free(exception); } -static struct ast_datastore_info exception_store_info = { +static const struct ast_datastore_info exception_store_info = { .type = "EXCEPTION", .destroy = exception_store_free, }; -- cgit v1.2.3