From 46e44f9afbe96ec5bcb3206705cff5620b8f5ba4 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Wed, 12 Sep 2007 00:10:39 +0000 Subject: [PATCH] fix sofia windows build. 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 | 2 +- libs/sofia-sip/libsofia-sip-ua/url/url.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/sofia-sip/libsofia-sip-ua/tport/tport_type_tcp.c b/libs/sofia-sip/libsofia-sip-ua/tport/tport_type_tcp.c index f2a98a237f..2c97221307 100644 --- a/libs/sofia-sip/libsofia-sip-ua/tport/tport_type_tcp.c +++ b/libs/sofia-sip/libsofia-sip-ua/tport/tport_type_tcp.c @@ -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", diff --git a/libs/sofia-sip/libsofia-sip-ua/url/url.c b/libs/sofia-sip/libsofia-sip-ua/url/url.c index 312e5340fe..68a5bb5faa 100644 --- a/libs/sofia-sip/libsofia-sip-ua/url/url.c +++ b/libs/sofia-sip/libsofia-sip-ua/url/url.c @@ -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;