Changeset 837 for trunk/libtransmission


Ignore:
Timestamp:
Aug 30, 2006, 4:35:33 PM (15 years ago)
Author:
joshe
Message:

Allow a couple of the message functions to be called before the first tr_init()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.c

    r817 r837  
    4242void tr_setMessageLevel( int level )
    4343{
     44    tr_msgInit();
    4445    tr_lockLock( messageLock );
    4546    messageLevel = MAX( 0, level );
     
    5152    int ret;
    5253
     54    tr_msgInit();
    5355    tr_lockLock( messageLock );
    5456    ret = messageLevel;
     
    6062void tr_setMessageQueuing( int enabled )
    6163{
     64    tr_msgInit();
    6265    tr_lockLock( messageLock );
    6366    messageQueuing = enabled;
     
    6972    tr_msg_list_t * ret;
    7073
     74    assert( NULL != messageLock );
    7175    tr_lockLock( messageLock );
    7276    ret = messageQueue;
     
    96100    tr_msg_list_t * newmsg;
    97101
     102    assert( NULL != messageLock );
    98103    tr_lockLock( messageLock );
    99104
Note: See TracChangeset for help on using the changeset viewer.