Ignore:
Timestamp:
Jan 6, 2011, 2:33:39 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) in deep logging, use evbuffer_write() instead of fwrite()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.c

    r11634 r11637  
    244244        /* FIXME(libevent2) ifdef this out for nonwindows platforms */
    245245        OutputDebugString( evbuffer_pullup( buf, -1 ) );
    246         if(fp) /* FIXME(libevent2) tr_getLog() should return an fd, then use evbuffer_write() here ) */
    247             (void) fwrite( evbuffer_pullup( buf, -1 ), 1, evbuffer_get_length( buf ), fp );
     246        if( fp )
     247            evbuffer_write( buf, fileno( fp ) );
    248248
    249249        tr_free( base );
Note: See TracChangeset for help on using the changeset viewer.