Ignore:
Timestamp:
Nov 27, 2009, 5:55:09 PM (12 years ago)
Author:
livings124
Message:

trivial cleanup in the logging code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.c

    r9605 r9608  
    9494tr_getLog( void )
    9595{
    96     static int    initialized = FALSE;
     96    static tr_bool initialized = FALSE;
    9797    static FILE * file = NULL;
    9898
     
    302302{
    303303    const int err = errno; /* message logging shouldn't affect errno */
    304     FILE * fp;
    305304    tr_lockLock( messageLock );
    306 
    307     fp = tr_getLog( );
    308305
    309306    if( messageLevel >= level )
     
    339336            {
    340337                char timestr[64];
    341 
     338                FILE * fp;
     339
     340                fp = tr_getLog( );
    342341                if( fp == NULL )
    343342                    fp = stderr;
Note: See TracChangeset for help on using the changeset viewer.