Ignore:
Timestamp:
Oct 15, 2008, 4:43:51 PM (13 years ago)
Author:
charles
Message:

(libT) try again to get the libevent+libcurl code working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.c

    r6905 r6907  
    393393**/
    394394
    395 struct timeval
    396 tr_timevalMsec( uint64_t milliseconds )
    397 {
    398     struct timeval ret;
     395void
     396tr_timevalMsec( uint64_t milliseconds, struct timeval * setme )
     397{
    399398    const uint64_t microseconds = milliseconds * 1000;
    400 
    401     ret.tv_sec  = microseconds / 1000000;
    402     ret.tv_usec = microseconds % 1000000;
    403     return ret;
     399    setme->tv_sec  = microseconds / 1000000;
     400    setme->tv_usec = microseconds % 1000000;
    404401}
    405402
Note: See TracChangeset for help on using the changeset viewer.