mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -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, | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user