1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00

Use stricter type for enums

This commit is contained in:
Mukund Sivaraman 2008-08-22 16:30:07 +00:00
parent 196ae72a85
commit c10a612f90
3 changed files with 4 additions and 4 deletions

View file

@ -739,7 +739,7 @@ refillPulse( void * vtorrent )
/* maybe one of the webseeds can do it */
for( j=0; !handled && j<webseedCount; )
{
const int val = tr_webseedAddRequest( webseeds[j], piece );
const tr_addreq_t val = tr_webseedAddRequest( webseeds[j], piece );
switch( val )
{
case TR_ADDREQ_FULL:

View file

@ -230,7 +230,7 @@ requestNextChunk( tr_webseed * w )
tr_free( url );
}
int
tr_addreq_t
tr_webseedAddRequest( tr_webseed * w,
tr_piece_index_t piece )
{

View file

@ -24,8 +24,8 @@ tr_webseed* tr_webseedNew( struct tr_torrent * torrent,
void tr_webseedFree( tr_webseed * );
int tr_webseedAddRequest( tr_webseed * w,
tr_piece_index_t piece );
tr_addreq_t tr_webseedAddRequest( tr_webseed * w,
tr_piece_index_t piece );
/** @return true if a request is being processed, or false if idle */
int tr_webseedGetSpeed( const tr_webseed * w ,