[Freeswitch-svn] [commit] r5704 - in freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua: tport url

Freeswitch SVN mikej at freeswitch.org
Tue Sep 11 20:10:39 EDT 2007


Author: mikej
Date: Tue Sep 11 20:10:39 2007
New Revision: 5704

Modified:
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/tport/tport_type_tcp.c
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/url/url.c

Log:
fix sofia windows build.

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/tport/tport_type_tcp.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/tport/tport_type_tcp.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/tport/tport_type_tcp.c	Tue Sep 11 20:10:39 2007
@@ -313,7 +313,7 @@
     if (i + self->tp_ping >= 4)
       tport_tcp_pong(self);
     else
-      self->tp_ping += i;
+      self->tp_ping += (unsigned short)i;
 
     if (i == iovec->siv_len && veclen == 1) {
       SU_DEBUG_7(("%s(%p): received %u bytes of keepalive\n",

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/url/url.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/url/url.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/url/url.c	Tue Sep 11 20:10:39 2007
@@ -801,8 +801,8 @@
   if (s && !url_canonize(s, s, SIZE_MAX, 
 			 /* Allow all URI characters but ? */
 			 /* Allow unescaped /;?@, - but do not convert */
-			 SYN33('/') | SYN33(';') | SYN33('=') | SYN33('@') |
-			 SYN33(','),
+			 (unsigned)(SYN33('/') | SYN33(';') | SYN33('=') | SYN33('@') |
+			 SYN33(',')),
 			 /* Convert escaped :&+$ to unescaped */
 			 ":&+$"))
     return -1;
@@ -811,7 +811,7 @@
   if (s && !url_canonize(s, s, SIZE_MAX,
 			 /* Allow all URI characters but ? */
 			 /* Allow unescaped ;=@, - but do not convert */
-			 SYN33(';') | SYN33('=') | SYN33('@') | SYN33(','),
+			 (unsigned)(SYN33(';') | SYN33('=') | SYN33('@') | SYN33(',')),
 			 /* Convert escaped /:&+$ to unescaped */
 			 "/:&+$"))
     return -1;



More information about the Freeswitch-svn mailing list