[asterisk-commits] trunk r9629 - in /trunk: include/asterisk/stringfields.h utils.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat Feb 11 13:54:23 MST 2006


Author: russell
Date: Sat Feb 11 14:54:21 2006
New Revision: 9629

URL: http://svn.digium.com/view/asterisk?rev=9629&view=rev
Log:
eliminate warning on older versions of gcc

Modified:
    trunk/include/asterisk/stringfields.h
    trunk/utils.c

Modified: trunk/include/asterisk/stringfields.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/stringfields.h?rev=9629&r1=9628&r2=9629&view=diff
==============================================================================
--- trunk/include/asterisk/stringfields.h (original)
+++ trunk/include/asterisk/stringfields.h Sat Feb 11 14:54:21 2006
@@ -103,7 +103,7 @@
   \internal
   \brief A constant empty string used for fields that have no other value
 */
-extern const char *__ast_string_field_empty;
+extern const char __ast_string_field_empty[];
 
 /*!
   \internal

Modified: trunk/utils.c
URL: http://svn.digium.com/view/asterisk/trunk/utils.c?rev=9629&r1=9628&r2=9629&view=diff
==============================================================================
--- trunk/utils.c (original)
+++ trunk/utils.c Sat Feb 11 14:54:21 2006
@@ -961,7 +961,7 @@
 	s[ofs] = '\0';
 }
 
-const char const *__ast_string_field_empty = "";
+const char __ast_string_field_empty[] = "";
 
 static int add_string_pool(struct ast_string_field_mgr *mgr, size_t size)
 {



More information about the asterisk-commits mailing list