[asterisk-commits] kpfleming: branch kpfleming/new_optional_api r197472 - /team/kpfleming/new_op...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu May 28 08:56:10 CDT 2009


Author: kpfleming
Date: Thu May 28 08:56:06 2009
New Revision: 197472

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=197472
Log:
minor optimization for Darwin implementation

Modified:
    team/kpfleming/new_optional_api/include/asterisk/optional_api.h

Modified: team/kpfleming/new_optional_api/include/asterisk/optional_api.h
URL: http://svn.asterisk.org/svn-view/asterisk/team/kpfleming/new_optional_api/include/asterisk/optional_api.h?view=diff&rev=197472&r1=197471&r2=197472
==============================================================================
--- team/kpfleming/new_optional_api/include/asterisk/optional_api.h (original)
+++ team/kpfleming/new_optional_api/include/asterisk/optional_api.h Thu May 28 08:56:06 2009
@@ -123,11 +123,11 @@
 
 #define AST_OPTIONAL_API(result, name, proto, stub) \
 	result AST_OPTIONAL_API_NAME(name) proto; \
-	static attribute_unused typeof(AST_OPTIONAL_API_NAME(name)) * name = AST_OPTIONAL_API_NAME(name);
+	static attribute_unused typeof(AST_OPTIONAL_API_NAME(name)) * const name = AST_OPTIONAL_API_NAME(name);
 
 #define AST_OPTIONAL_API_ATTR(result, attr, name, proto, stub)	\
 	result __attribute__((attr)) AST_OPTIONAL_API_NAME(name) proto; \
-	static attribute_unused typeof(AST_OPTIONAL_API_NAME(name)) * name = AST_OPTIONAL_API_NAME(name);
+	static attribute_unused typeof(AST_OPTIONAL_API_NAME(name)) * const name = AST_OPTIONAL_API_NAME(name);
 
 #else
 




More information about the asterisk-commits mailing list