mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
fix r3777 compiler warning reported by SoftwareElves
This commit is contained in:
@@ -195,13 +195,13 @@ tr_ioRead( tr_torrent * tor,
|
||||
}
|
||||
|
||||
int
|
||||
tr_ioWrite( tr_torrent * tor,
|
||||
int pieceIndex,
|
||||
int begin,
|
||||
int len,
|
||||
uint8_t * buf )
|
||||
tr_ioWrite( tr_torrent * tor,
|
||||
int pieceIndex,
|
||||
int begin,
|
||||
int len,
|
||||
const uint8_t * buf )
|
||||
{
|
||||
return readOrWritePiece( tor, TR_IO_WRITE, pieceIndex, begin, buf, len );
|
||||
return readOrWritePiece( tor, TR_IO_WRITE, pieceIndex, begin, (void*)buf, len );
|
||||
}
|
||||
|
||||
/****
|
||||
|
||||
@@ -38,7 +38,7 @@ typedef struct tr_io tr_io;
|
||||
* TR_ERROR_IO_* otherwise.
|
||||
**********************************************************************/
|
||||
int tr_ioRead ( struct tr_torrent*, int index, int begin, int len, uint8_t * );
|
||||
int tr_ioWrite ( struct tr_torrent *, int index, int begin, int len, uint8_t * );
|
||||
int tr_ioWrite ( struct tr_torrent *, int index, int begin, int len, const uint8_t * );
|
||||
|
||||
/* hashes the specified piece and updates the completion accordingly. */
|
||||
int tr_ioHash ( tr_torrent*, int piece );
|
||||
|
||||
Reference in New Issue
Block a user