Ignore:
Timestamp:
Jan 29, 2010, 6:07:21 PM (12 years ago)
Author:
charles
Message:

(trunk libT) #2833 "LP64 bug on OpenBSD" -- fixed in trunk for 1.90

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.c

    r9988 r10044  
    213213    struct tm      now_tm;
    214214    struct timeval tv;
     215    time_t         seconds;
    215216    int            milliseconds;
    216217
    217218    gettimeofday( &tv, NULL );
    218219
    219     tr_localtime_r( &tv.tv_sec, &now_tm );
     220    seconds = tv.tv_sec;
     221    tr_localtime_r( &seconds, &now_tm );
    220222    strftime( tmp, sizeof( tmp ), "%H:%M:%S", &now_tm );
    221223    milliseconds = (int)( tv.tv_usec / 1000 );
Note: See TracChangeset for help on using the changeset viewer.