summaryrefslogtreecommitdiff
path: root/src/gsmd/timer.c
diff options
context:
space:
mode:
authorerin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3>2008-01-10 05:14:53 +0000
committererin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3>2008-01-10 05:14:53 +0000
commitfbc0b497567fecd2818f4a497843f62d1be6d70c (patch)
treea08697bc3dcd3dbe25df196c19c788aa8bb8a6c5 /src/gsmd/timer.c
parent9567f52dbf14097d8e19d0d858594d971aa725ec (diff)
gsmd: eliminate gcc warnings (Erin Yueh)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3807 99fdad57-331a-0410-800a-d7fa5415bdb3
Diffstat (limited to 'src/gsmd/timer.c')
-rw-r--r--src/gsmd/timer.c7
1 files changed, 4 insertions, 3 deletions
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)
personal git repositories of Harald Welte. Your mileage may vary