Changeset 10365


Ignore:
Timestamp:
Mar 12, 2010, 7:24:45 PM (12 years ago)
Author:
charles
Message:

(trunk libT) make tr_updateTime() inlined

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.c

    r10305 r10365  
    5353
    5454
     55time_t transmission_now = 0;
     56
    5557int                   messageLevel = TR_MSG_INF;
    5658static tr_lock *      messageLock = NULL;
     
    6567    static inline void OutputDebugString( const void * unused UNUSED ) { }
    6668#endif
    67 
    68 /***
    69 ****
    70 ***/
    71 
    72 time_t transmission_now = 0;
    73 
    74 void
    75 tr_timeUpdate( time_t now )
    76 {
    77     transmission_now = now;
    78 }
    7969
    8070/***
  • trunk/libtransmission/utils.h

    r10274 r10365  
    542542static inline time_t tr_time( void ) { return transmission_now; }
    543543
    544 /** @brief Private libtransmission function to update the second counter used by tr_time() */
    545 void tr_timeUpdate( time_t now );
     544/** @brief Private libtransmission function to update tr_time()'s counter */
     545static inline void tr_timeUpdate( time_t now ) { transmission_now = now; }
    546546
    547547/***
Note: See TracChangeset for help on using the changeset viewer.