]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix sofia windows build.
authorMichael Jerris <mike@jerris.com>
Wed, 12 Sep 2007 00:10:39 +0000 (00:10 +0000)
committerMichael Jerris <mike@jerris.com>
Wed, 12 Sep 2007 00:10:39 +0000 (00:10 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5704 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/sofia-sip/libsofia-sip-ua/tport/tport_type_tcp.c
libs/sofia-sip/libsofia-sip-ua/url/url.c

index f2a98a237f374c34d0acdda28ea82fbc6a787b61..2c97221307112245460f12aa0d201b0ddefe9493 100644 (file)
@@ -313,7 +313,7 @@ int tport_recv_stream(tport_t *self)
     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",
index 312e5340fe658913d356d13d36f6bca970aec8fd..68a5bb5faa68abc7f6712039e827017a268c38bf 100644 (file)
@@ -801,8 +801,8 @@ int url_d(url_t *url, char *s)
   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 @@ int url_d(url_t *url, char *s)
   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;