Ignore:
Timestamp:
Feb 12, 2011, 5:27:47 PM (11 years ago)
Author:
jordan
Message:

(trunk) #4019 "Minor patch, kill useless casts in transmission source." -- fixed. patch by jlouis

jlouis used Coccinelle to scan transmission's source for redundant code that casts a type to its own type.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.c

    r11798 r11881  
    202202    tr_localtime_r( &seconds, &now_tm );
    203203    strftime( tmp, sizeof( tmp ), "%H:%M:%S", &now_tm );
    204     milliseconds = (int)( tv.tv_usec / 1000 );
     204    milliseconds = tv.tv_usec / 1000;
    205205    tr_snprintf( buf, buflen, "%s.%03d", tmp, milliseconds );
    206206
Note: See TracChangeset for help on using the changeset viewer.