提交 46e44f9a authored 作者: Michael Jerris's avatar Michael Jerris

fix sofia windows build.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5704 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 6ddfd824
...@@ -313,7 +313,7 @@ int tport_recv_stream(tport_t *self) ...@@ -313,7 +313,7 @@ int tport_recv_stream(tport_t *self)
if (i + self->tp_ping >= 4) if (i + self->tp_ping >= 4)
tport_tcp_pong(self); tport_tcp_pong(self);
else else
self->tp_ping += i; self->tp_ping += (unsigned short)i;
if (i == iovec->siv_len && veclen == 1) { if (i == iovec->siv_len && veclen == 1) {
SU_DEBUG_7(("%s(%p): received %u bytes of keepalive\n", SU_DEBUG_7(("%s(%p): received %u bytes of keepalive\n",
......
...@@ -801,8 +801,8 @@ int url_d(url_t *url, char *s) ...@@ -801,8 +801,8 @@ int url_d(url_t *url, char *s)
if (s && !url_canonize(s, s, SIZE_MAX, if (s && !url_canonize(s, s, SIZE_MAX,
/* Allow all URI characters but ? */ /* Allow all URI characters but ? */
/* Allow unescaped /;?@, - but do not convert */ /* Allow unescaped /;?@, - but do not convert */
SYN33('/') | SYN33(';') | SYN33('=') | SYN33('@') | (unsigned)(SYN33('/') | SYN33(';') | SYN33('=') | SYN33('@') |
SYN33(','), SYN33(',')),
/* Convert escaped :&+$ to unescaped */ /* Convert escaped :&+$ to unescaped */
":&+$")) ":&+$"))
return -1; return -1;
...@@ -811,7 +811,7 @@ int url_d(url_t *url, char *s) ...@@ -811,7 +811,7 @@ int url_d(url_t *url, char *s)
if (s && !url_canonize(s, s, SIZE_MAX, if (s && !url_canonize(s, s, SIZE_MAX,
/* Allow all URI characters but ? */ /* Allow all URI characters but ? */
/* Allow unescaped ;=@, - but do not convert */ /* Allow unescaped ;=@, - but do not convert */
SYN33(';') | SYN33('=') | SYN33('@') | SYN33(','), (unsigned)(SYN33(';') | SYN33('=') | SYN33('@') | SYN33(',')),
/* Convert escaped /:&+$ to unescaped */ /* Convert escaped /:&+$ to unescaped */
"/:&+$")) "/:&+$"))
return -1; return -1;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论