mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 08:31:02 +00:00
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) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@161421 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -294,7 +294,7 @@ static int hash_zero(const void *user_obj, const int flags)
|
|||||||
* A container is just an object, after all!
|
* A container is just an object, after all!
|
||||||
*/
|
*/
|
||||||
struct ao2_container *
|
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)
|
ao2_callback_fn cmp_fn)
|
||||||
{
|
{
|
||||||
/* XXX maybe consistency check on arguments ? */
|
/* XXX maybe consistency check on arguments ? */
|
||||||
|
@@ -332,7 +332,7 @@ struct ao2_container;
|
|||||||
*
|
*
|
||||||
* destructor is set implicitly.
|
* 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);
|
ao2_hash_fn hash_fn, ao2_callback_fn cmp_fn);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@@ -529,11 +529,11 @@ struct ao2_iterator {
|
|||||||
/*! current bucket */
|
/*! current bucket */
|
||||||
int bucket;
|
int bucket;
|
||||||
/*! container version */
|
/*! container version */
|
||||||
uint c_version;
|
unsigned int c_version;
|
||||||
/*! pointer to the current object */
|
/*! pointer to the current object */
|
||||||
void *obj;
|
void *obj;
|
||||||
/*! container version when the object was created */
|
/*! container version when the object was created */
|
||||||
uint version;
|
unsigned int version;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ao2_iterator ao2_iterator_init(struct ao2_container *c, int flags);
|
struct ao2_iterator ao2_iterator_init(struct ao2_container *c, int flags);
|
||||||
|
Reference in New Issue
Block a user