From fbc0b497567fecd2818f4a497843f62d1be6d70c Mon Sep 17 00:00:00 2001 From: erin_yueh Date: Thu, 10 Jan 2008 05:14:53 +0000 Subject: gsmd: eliminate gcc warnings (Erin Yueh) git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3807 99fdad57-331a-0410-800a-d7fa5415bdb3 --- src/gsmd/timer.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gsmd/timer.c') diff --git a/src/gsmd/timer.c b/src/gsmd/timer.c index 5200690..648676f 100644 --- a/src/gsmd/timer.c +++ b/src/gsmd/timer.c @@ -37,12 +37,13 @@ static LLIST_HEAD(gsmd_timers); static void *__tmr_ctx; +#if 0 static void tv_normalize(struct timeval *out) { out->tv_sec += (out->tv_usec / 1000000); out->tv_usec = (out->tv_usec % 1000000); } - +#endif /* subtract two struct timevals */ static int tv_sub(struct timeval *res, const struct timeval *from, const struct timeval *sub) @@ -57,7 +58,7 @@ static int tv_sub(struct timeval *res, const struct timeval *from, return 0; } - +#if 0 static int tv_add(struct timeval *res, const struct timeval *a1, const struct timeval *a2) { @@ -68,7 +69,7 @@ static int tv_add(struct timeval *res, const struct timeval *a1, tv_normalize(res); } - +#endif static int tv_later(const struct timeval *expires, const struct timeval *now) { if (expires->tv_sec < now->tv_sec) -- cgit v1.2.3