[svn-commits] trunk - r7705 in /trunk/channels: chan_iax2.c
chan_sip.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Sun Jan 1 19:53:28 CST 2006
Author: bweschke
Date: Sun Jan 1 19:53:26 2006
New Revision: 7705
URL: http://svn.digium.com/view/asterisk?rev=7705&view=rev
Log:
Fix compiler warnings.
Modified:
trunk/channels/chan_iax2.c
trunk/channels/chan_sip.c
Modified: trunk/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_iax2.c?rev=7705&r1=7704&r2=7705&view=diff
==============================================================================
--- trunk/channels/chan_iax2.c (original)
+++ trunk/channels/chan_iax2.c Sun Jan 1 19:53:26 2006
@@ -2602,7 +2602,7 @@
break;
}
} else if (!strcasecmp(tmp->name, "regseconds")) {
- if (sscanf(tmp->value, "%i", (int *)®seconds) != 1)
+ if (sscanf(tmp->value, "%ld", (time_t *)®seconds) != 1)
regseconds = 0;
} else if (!strcasecmp(tmp->name, "ipaddr")) {
inet_aton(tmp->value, &(peer->addr.sin_addr));
Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=7705&r1=7704&r2=7705&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Sun Jan 1 19:53:26 2006
@@ -12048,7 +12048,7 @@
}
if (realtime && !strcasecmp(v->name, "regseconds")) {
- if (sscanf(v->value, "%i", (int *)®seconds) != 1)
+ if (sscanf(v->value, "%ld", (time_t *)®seconds) != 1)
regseconds = 0;
} else if (realtime && !strcasecmp(v->name, "ipaddr") && !ast_strlen_zero(v->value) ) {
inet_aton(v->value, &(peer->addr.sin_addr));
More information about the svn-commits
mailing list