[asterisk-commits] branch 1.2 - r7706 in /branches/1.2/channels: chan_iax2.c chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Jan 1 20:04:15 CST 2006


Author: bweschke
Date: Sun Jan  1 20:04:14 2006
New Revision: 7706

URL: http://svn.digium.com/view/asterisk?rev=7706&view=rev
Log:
 Fix compiler warnings.


Modified:
    branches/1.2/channels/chan_iax2.c
    branches/1.2/channels/chan_sip.c

Modified: branches/1.2/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_iax2.c?rev=7706&r1=7705&r2=7706&view=diff
==============================================================================
--- branches/1.2/channels/chan_iax2.c (original)
+++ branches/1.2/channels/chan_iax2.c Sun Jan  1 20:04:14 2006
@@ -2599,7 +2599,7 @@
 				break;
 			} 
 		} else if (!strcasecmp(tmp->name, "regseconds")) {
-			if (sscanf(tmp->value, "%i", (int *)&regseconds) != 1)
+			if (sscanf(tmp->value, "%ld", (time_t *)&regseconds) != 1)
 				regseconds = 0;
 		} else if (!strcasecmp(tmp->name, "ipaddr")) {
 			inet_aton(tmp->value, &(peer->addr.sin_addr));

Modified: branches/1.2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_sip.c?rev=7706&r1=7705&r2=7706&view=diff
==============================================================================
--- branches/1.2/channels/chan_sip.c (original)
+++ branches/1.2/channels/chan_sip.c Sun Jan  1 20:04:14 2006
@@ -12066,7 +12066,7 @@
 		}
 
 		if (realtime && !strcasecmp(v->name, "regseconds")) {
-			if (sscanf(v->value, "%i", (int *)&regseconds) != 1)
+			if (sscanf(v->value, "%ld", (time_t *)&regseconds) != 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 asterisk-commits mailing list