(trunk libT) add a "const" to tr_ptrArrayRemove()'s second argument to silence a compiler warning
This commit is contained in:
parent
2b397fe64f
commit
ce5f82f413
|
@ -201,7 +201,7 @@ tr_ptrArrayFindSorted( tr_ptrArray * t,
|
||||||
|
|
||||||
void*
|
void*
|
||||||
tr_ptrArrayRemoveSorted( tr_ptrArray * t,
|
tr_ptrArrayRemoveSorted( tr_ptrArray * t,
|
||||||
void * ptr,
|
const void * ptr,
|
||||||
int compare(const void*, const void*) )
|
int compare(const void*, const void*) )
|
||||||
{
|
{
|
||||||
void * ret = NULL;
|
void * ret = NULL;
|
||||||
|
|
|
@ -109,7 +109,7 @@ int tr_ptrArrayInsertSorted( tr_ptrArray * array,
|
||||||
/** @brief Remove a pointer from an array sorted by the specified sort function
|
/** @brief Remove a pointer from an array sorted by the specified sort function
|
||||||
@return the matching pointer, or NULL if no match was found */
|
@return the matching pointer, or NULL if no match was found */
|
||||||
void* tr_ptrArrayRemoveSorted( tr_ptrArray * array,
|
void* tr_ptrArrayRemoveSorted( tr_ptrArray * array,
|
||||||
void * value,
|
const void * value,
|
||||||
int compare(const void*, const void*) );
|
int compare(const void*, const void*) );
|
||||||
|
|
||||||
/** @brief Find a pointer from an array sorted by the specified sort function
|
/** @brief Find a pointer from an array sorted by the specified sort function
|
||||||
|
|
Loading…
Reference in New Issue