Ignore:
Timestamp:
Feb 15, 2008, 6:25:42 PM (13 years ago)
Author:
charles
Message:

make the code a little easier to read. make tr_ioFileTest()'s return value consistent with other inout funcs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/inout.h

    r5042 r5045  
    5151
    5252/**
    53  * returns true if the piece matches its metainfo's SHA1 checksum,
    54  * false otherwise.
     53 * returns 0 if the piece matches its metainfo's SHA1 checksum,
     54 * or TR_ERROR_IO_* if there was a problem reading the piece,
     55 * or TR_ERROR if the checksum didn't match.
    5556 */
    56 int tr_ioTestPiece( const tr_torrent*, int piece );
    57 
    58 
    59 /**
    60  * tests the specified piece and uses the results to
    61  * update the torrent's "completion" and "blame" fields.
    62  */
    63 int tr_ioHash ( tr_torrent*, int piece );
     57tr_errno tr_ioTestPiece( const tr_torrent*, int piece );
    6458
    6559
Note: See TracChangeset for help on using the changeset viewer.