Ignore:
Timestamp:
Dec 21, 2008, 6:15:00 PM (12 years ago)
Author:
charles
Message:

(trunk libT) comments, tr_bool correctness, better runtime tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r7397 r7446  
    143143{
    144144    assert( tor != NULL );
    145     assert( dir==TR_UP || dir==TR_DOWN );
     145    assert( tr_isDirection( dir ) );
    146146    assert( mode==TR_SPEEDLIMIT_GLOBAL || mode==TR_SPEEDLIMIT_SINGLE || mode==TR_SPEEDLIMIT_UNLIMITED  );
    147147
     
    157157{
    158158    assert( tor != NULL );
    159     assert( dir==TR_UP || dir==TR_DOWN );
     159    assert( tr_isDirection( dir ) );
    160160
    161161    return tor->speedLimitMode[dir];
Note: See TracChangeset for help on using the changeset viewer.