Changeset 10030


Ignore:
Timestamp:
Jan 28, 2010, 1:31:54 PM (12 years ago)
Author:
charles
Message:

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

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/ptrarray.c

    r9868 r10030  
    202202void*
    203203tr_ptrArrayRemoveSorted( tr_ptrArray * t,
    204                          void *        ptr,
     204                         const void *        ptr,
    205205                          int            compare(const void*, const void*) )
    206206{
  • trunk/libtransmission/ptrarray.h

    r9891 r10030  
    110110    @return the matching pointer, or NULL if no match was found */
    111111void* tr_ptrArrayRemoveSorted( tr_ptrArray * array,
    112                                void        * value,
     112                               const void  * value,
    113113                               int compare(const void*, const void*) );
    114114
Note: See TracChangeset for help on using the changeset viewer.