提交 09390e70 authored 作者: Michael Jerris's avatar Michael Jerris

tweak for picky compiler

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8671 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 1a2131de
...@@ -162,13 +162,13 @@ static abyss_bool http_directory_auth(TSession *r, char *domain_name) ...@@ -162,13 +162,13 @@ static abyss_bool http_directory_auth(TSession *r, char *domain_name)
p = RequestHeaderValue(r, "authorization"); p = RequestHeaderValue(r, "authorization");
if (p) { if (p) {
NextToken((const char **)&p); NextToken((const char ** const)&p);
x = GetToken(&p); x = GetToken(&p);
if (x) { if (x) {
if (!strcasecmp(x, "basic")) { if (!strcasecmp(x, "basic")) {
NextToken((const char **)&p); NextToken((const char ** const)&p);
switch_b64_decode(p, user, sizeof(user)); switch_b64_decode(p, user, sizeof(user));
if ((pass = strchr(user, ':'))) { if ((pass = strchr(user, ':'))) {
*pass++ = '\0'; *pass++ = '\0';
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论