summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-04-12 14:24:10 +0300
committerAlon Levy <alevy@redhat.com>2011-05-09 09:59:57 +0300
commit34949178a823d830c7a1666add3c4609ee494e4a (patch)
treeec34ec5c4661d26a86f73f350f3d6d7e83dc24e0
parentdb7d6c866ed444396c9d68d4881d22b75a4deaa5 (diff)
downloadspice-34949178a823d830c7a1666add3c4609ee494e4a.tar.gz
spice-34949178a823d830c7a1666add3c4609ee494e4a.tar.xz
spice-34949178a823d830c7a1666add3c4609ee494e4a.zip
server/red_worker: stat_now cleanup
static, remove inline, add (void), and empty line after function variables.
-rw-r--r--server/red_worker.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/red_worker.c b/server/red_worker.c
index 752d16cf..bee86b9b 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -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;
}