[asterisk-commits] mmichelson: trunk r115199 - /trunk/res/snmp/agent.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri May 2 09:51:59 CDT 2008
Author: mmichelson
Date: Fri May 2 09:51:59 2008
New Revision: 115199
URL: http://svn.digium.com/view/asterisk?view=rev&rev=115199
Log:
Make res/snmp/agent.c build
Modified:
trunk/res/snmp/agent.c
Modified: trunk/res/snmp/agent.c
URL: http://svn.digium.com/view/asterisk/trunk/res/snmp/agent.c?view=diff&rev=115199&r1=115198&r2=115199
==============================================================================
--- trunk/res/snmp/agent.c (original)
+++ trunk/res/snmp/agent.c Fri May 2 09:51:59 2008
@@ -301,9 +301,9 @@
}
break;
case ASTCHANWHENHANGUP:
- if (chan->whentohangup) {
+ if (!ast_tvzero(chan->whentohangup)) {
gettimeofday(&tval, NULL);
- long_ret = difftime(chan->whentohangup, tval.tv_sec) * 100 - tval.tv_usec / 10000;
+ long_ret = difftime(chan->whentohangup.tv_sec, tval.tv_sec) * 100 - tval.tv_usec / 10000;
ret= (u_char *)&long_ret;
}
break;
More information about the asterisk-commits
mailing list