(trunk libT) add a "const" to tr_ptrArrayRemove()'s second argument to silence a compiler warning

This commit is contained in:
Charles Kerr 2010-01-28 13:31:54 +00:00
parent 2b397fe64f
commit ce5f82f413
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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