[asterisk-commits] seanbright: branch 1.2 r161421 - in /branches/1.2: ./ include/asterisk/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Dec 5 14:50:24 CST 2008
Author: seanbright
Date: Fri Dec 5 14:50:23 2008
New Revision: 161421
URL: http://svn.digium.com/view/asterisk?view=rev&rev=161421
Log:
Fix build errors on FreeBSD (uint -> unsigned int).
(closes issue #14006)
Reported by: alphaque
Patches:
astobj2.h-patch uploaded by alphaque (license 259)
(Slightly modified by seanbright)
Modified:
branches/1.2/astobj2.c
branches/1.2/include/asterisk/astobj2.h
Modified: branches/1.2/astobj2.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/astobj2.c?view=diff&rev=161421&r1=161420&r2=161421
==============================================================================
--- branches/1.2/astobj2.c (original)
+++ branches/1.2/astobj2.c Fri Dec 5 14:50:23 2008
@@ -294,7 +294,7 @@
* A container is just an object, after all!
*/
struct ao2_container *
-ao2_container_alloc(const uint n_buckets, ao2_hash_fn hash_fn,
+ao2_container_alloc(const unsigned int n_buckets, ao2_hash_fn hash_fn,
ao2_callback_fn cmp_fn)
{
/* XXX maybe consistency check on arguments ? */
Modified: branches/1.2/include/asterisk/astobj2.h
URL: http://svn.digium.com/view/asterisk/branches/1.2/include/asterisk/astobj2.h?view=diff&rev=161421&r1=161420&r2=161421
==============================================================================
--- branches/1.2/include/asterisk/astobj2.h (original)
+++ branches/1.2/include/asterisk/astobj2.h Fri Dec 5 14:50:23 2008
@@ -332,7 +332,7 @@
*
* destructor is set implicitly.
*/
-struct ao2_container *ao2_container_alloc(const uint n_buckets,
+struct ao2_container *ao2_container_alloc(const unsigned int n_buckets,
ao2_hash_fn hash_fn, ao2_callback_fn cmp_fn);
/*!
@@ -529,11 +529,11 @@
/*! current bucket */
int bucket;
/*! container version */
- uint c_version;
+ unsigned int c_version;
/*! pointer to the current object */
void *obj;
/*! container version when the object was created */
- uint version;
+ unsigned int version;
};
struct ao2_iterator ao2_iterator_init(struct ao2_container *c, int flags);
More information about the asterisk-commits
mailing list