Changeset 3778


Ignore:
Timestamp:
Nov 10, 2007, 5:01:13 AM (13 years ago)
Author:
charles
Message:

fix r3777 compiler warning reported by SoftwareElves?

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/inout.c

    r3775 r3778  
    196196
    197197int
    198 tr_ioWrite( tr_torrent  * tor,
    199             int           pieceIndex,
    200             int           begin,
    201             int           len,
    202             uint8_t     * buf )
    203 {
    204     return readOrWritePiece( tor, TR_IO_WRITE, pieceIndex, begin, buf, len );
     198tr_ioWrite( tr_torrent     * tor,
     199            int              pieceIndex,
     200            int              begin,
     201            int              len,
     202            const uint8_t  * buf )
     203{
     204    return readOrWritePiece( tor, TR_IO_WRITE, pieceIndex, begin, (void*)buf, len );
    205205}
    206206
  • trunk/libtransmission/inout.h

    r3650 r3778  
    3939 **********************************************************************/
    4040int tr_ioRead  ( struct tr_torrent*, int index, int begin, int len, uint8_t * );
    41 int tr_ioWrite ( struct tr_torrent *, int index, int begin, int len, uint8_t * );
     41int tr_ioWrite ( struct tr_torrent *, int index, int begin, int len, const uint8_t * );
    4242
    4343/* hashes the specified piece and updates the completion accordingly. */
Note: See TracChangeset for help on using the changeset viewer.