server/red_worker: stat_now cleanup

static, remove inline, add (void), and empty line after function variables.
This commit is contained in:
Alon Levy 2011-04-12 14:24:10 +03:00
parent db7d6c866e
commit 34949178a8

View File

@ -118,9 +118,10 @@ static clockid_t clock_id;
typedef unsigned long stat_time_t;
inline stat_time_t stat_now()
static stat_time_t stat_now(void)
{
struct timespec ts;
clock_gettime(clock_id, &ts);
return ts.tv_nsec + ts.tv_sec * 1000 * 1000 * 1000;
}