Ignore:
Timestamp:
Mar 8, 2007, 4:53:50 AM (15 years ago)
Author:
joshe
Message:

Fix for if unused isn't defined.
Pointless churn to silence char*/unint8_t* warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pex/libtransmission/peeraz.h

    r1542 r1545  
    8181
    8282static inline int
    83 azmsgNameIndex( const char *name, int len )
     83azmsgNameIndex( const char * name, int len )
    8484{
    8585    int ii;
     
    9797}
    9898
    99 static char *
     99static uint8_t *
    100100makeAZHandshake( tr_torrent_t * tor, tr_peer_t * peer, int * buflen )
    101101{
     
    195195
    196196    *buflen = len;
    197     return buf;
     197    return ( uint8_t * )buf;
    198198}
    199199
     
    245245sendAZHandshake( tr_torrent_t * tor, tr_peer_t * peer )
    246246{
    247     char * buf;
     247    uint8_t * buf;
    248248    int len;
    249249
     
    319319    msglen -= off;
    320320
    321     index = azmsgNameIndex( name, namelen );
     321    index = azmsgNameIndex( ( char * )name, namelen );
    322322    if( AZ_EXT_VERSION != vers )
    323323    {
     
    479479        if( TYPE_STR == pair->type && 6 == pair->val.s.i )
    480480        {
    481             tr_torrentAddCompact( tor, TR_PEER_FROM_PEX, pair->val.s.s, 1 );
     481            tr_torrentAddCompact( tor, TR_PEER_FROM_PEX,
     482                                  ( uint8_t * )pair->val.s.s, 1 );
    482483        }
    483484    }
Note: See TracChangeset for help on using the changeset viewer.