fix sofia windows build.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5704 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2007-09-12 00:10:39 +00:00
parent 6ddfd82436
commit 46e44f9afb
2 changed files with 4 additions and 4 deletions

View 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",

View 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;