Changeset 3778
- Timestamp:
- Nov 10, 2007, 5:01:13 AM (15 years ago)
- Location:
- trunk/libtransmission
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/inout.c
r3775 r3778 196 196 197 197 int 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 );198 tr_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 ); 205 205 } 206 206 -
trunk/libtransmission/inout.h
r3650 r3778 39 39 **********************************************************************/ 40 40 int 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 * );41 int tr_ioWrite ( struct tr_torrent *, int index, int begin, int len, const uint8_t * ); 42 42 43 43 /* hashes the specified piece and updates the completion accordingly. */
Note: See TracChangeset
for help on using the changeset viewer.