1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00

(trunk libT) make tr_updateTime() inlined

This commit is contained in:
Charles Kerr 2010-03-12 19:24:45 +00:00
parent f8bc2c472b
commit 7d7529eb94
2 changed files with 4 additions and 14 deletions

View file

@ -52,6 +52,8 @@
#include "version.h"
time_t transmission_now = 0;
int messageLevel = TR_MSG_INF;
static tr_lock * messageLock = NULL;
static tr_bool messageQueuing = FALSE;
@ -69,18 +71,6 @@ static int messageQueueCount = 0;
****
***/
time_t transmission_now = 0;
void
tr_timeUpdate( time_t now )
{
transmission_now = now;
}
/***
****
***/
void
tr_msgInit( void )
{

View file

@ -541,8 +541,8 @@ extern time_t transmission_now;
*/
static inline time_t tr_time( void ) { return transmission_now; }
/** @brief Private libtransmission function to update the second counter used by tr_time() */
void tr_timeUpdate( time_t now );
/** @brief Private libtransmission function to update tr_time()'s counter */
static inline void tr_timeUpdate( time_t now ) { transmission_now = now; }
/***
****