[asterisk-commits] tilghman: trunk r89312 - in /trunk: include/asterisk/stringfields.h main/utils.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Nov 15 17:50:15 CST 2007
Author: tilghman
Date: Thu Nov 15 17:50:15 2007
New Revision: 89312
URL: http://svn.digium.com/view/asterisk?view=rev&rev=89312
Log:
If we're going to be passing a negative value for the size of a stringfield,
in order to indicate something, then using an UNSIGNED parameter is bad,
mmmmmkay?
Modified:
trunk/include/asterisk/stringfields.h
trunk/main/utils.c
Modified: trunk/include/asterisk/stringfields.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/stringfields.h?view=diff&rev=89312&r1=89311&r2=89312
==============================================================================
--- trunk/include/asterisk/stringfields.h (original)
+++ trunk/include/asterisk/stringfields.h Thu Nov 15 17:50:15 2007
@@ -230,7 +230,7 @@
/*! \internal \brief internal version of ast_string_field_init */
int __ast_string_field_init(struct ast_string_field_mgr *mgr,
- struct ast_string_field_pool **pool_head, size_t needed);
+ struct ast_string_field_pool **pool_head, int needed);
/*!
\brief Set a field to a simple string value
Modified: trunk/main/utils.c
URL: http://svn.digium.com/view/asterisk/trunk/main/utils.c?view=diff&rev=89312&r1=89311&r2=89312
==============================================================================
--- trunk/main/utils.c (original)
+++ trunk/main/utils.c Thu Nov 15 17:50:15 2007
@@ -1244,7 +1244,7 @@
* This must be done before destroying the object.
*/
int __ast_string_field_init(struct ast_string_field_mgr *mgr,
- struct ast_string_field_pool **pool_head, size_t size)
+ struct ast_string_field_pool **pool_head, int size)
{
const char **p = (const char **)pool_head + 1;
struct ast_string_field_pool *cur = *pool_head;
More information about the asterisk-commits
mailing list