Module: sip-router
Branch: master
Commit: c0f4b6cf664ac552d0c994e99adb13991a37ef28
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c0f4b6c…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: Thu Apr 18 16:01:16 2013 -0400
seas: fix compiler warning [-Wunused-but-set-variable]
---
modules/seas/statistics.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/modules/seas/statistics.c b/modules/seas/statistics.c
index 0dfb66f..31a44c6 100644
--- a/modules/seas/statistics.c
+++ b/modules/seas/statistics.c
@@ -169,8 +169,10 @@ static inline int assignIndex(int i)
*/
inline void action_stat(struct cell *t)
{
- unsigned int seas_dispatch,as_delay;
- struct timeval *t1,*t2,*t3;
+ unsigned int seas_dispatch;
+ //unsigned int as_delay;
+ struct timeval *t1,*t2;
+ //struct timeval *t3;
struct statscell *s;
struct totag_elem *to;
if(t==0)
@@ -194,9 +196,9 @@ inline void action_stat(struct cell *t)
return;
t1=&(s->u.uas.as_relay);
t2=&(s->u.uas.event_sent);
- t3=&(s->u.uas.action_recvd);
+ //t3=&(s->u.uas.action_recvd);
seas_dispatch = (t2->tv_sec - t1->tv_sec)*1000 +
(t2->tv_usec-t1->tv_usec)/1000;
- as_delay = (t3->tv_sec - t2->tv_sec)*1000 +
(t3->tv_usec-t2->tv_usec)/1000;
+ //as_delay = (t3->tv_sec - t2->tv_sec)*1000 +
(t3->tv_usec-t2->tv_usec)/1000;
lock_get(seas_stats_table->mutex);
{