Changeset 11296


Ignore:
Timestamp:
Oct 8, 2010, 1:36:33 PM (12 years ago)
Author:
charles
Message:

(trunk libT) remove unnecessary calls to time(NULL)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-io.h

    r10931 r11296  
    3030#include "list.h" /* tr_list */
    3131#include "net.h" /* tr_address */
     32#include "utils.h" /* tr_time() */
    3233
    3334struct evbuffer;
     
    216217static inline int    tr_peerIoGetAge( const tr_peerIo * io )
    217218{
    218     return time( NULL ) - io->timeCreated;
     219    return tr_time() - io->timeCreated;
    219220}
    220221
Note: See TracChangeset for help on using the changeset viewer.