提交 3eb8ebd4 authored 作者: Michael Jerris's avatar Michael Jerris

fix windows build from recent changes.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3091 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 faf7cd38
差异被折叠。
...@@ -269,9 +269,9 @@ static void pres_event_handler(switch_event_t *event) ...@@ -269,9 +269,9 @@ static void pres_event_handler(switch_event_t *event)
sql = switch_core_db_mprintf("select *,'%q','%q' from subscriptions where sub_to='%q'", type ? type : "", status ? status : "unavailable", from); sql = switch_core_db_mprintf("select *,'%q','%q' from subscriptions where sub_to='%q'", type ? type : "", status ? status : "unavailable", from);
for (hi = switch_hash_first(apr_hash_pool_get(globals.profile_hash), globals.profile_hash); hi; hi = switch_hash_next(hi)) { for (hi = switch_hash_first(apr_hash_pool_get(globals.profile_hash), globals.profile_hash); hi; hi = switch_hash_next(hi)) {
char *errmsg;
switch_hash_this(hi, NULL, NULL, &val); switch_hash_this(hi, NULL, NULL, &val);
profile = (struct mdl_profile *) val; profile = (struct mdl_profile *) val;
char *errmsg;
if (!(profile->user_flags & LDL_FLAG_COMPONENT)) { if (!(profile->user_flags & LDL_FLAG_COMPONENT)) {
continue; continue;
...@@ -357,9 +357,9 @@ static void roster_event_handler(switch_event_t *event) ...@@ -357,9 +357,9 @@ static void roster_event_handler(switch_event_t *event)
sql = switch_core_db_mprintf("select *,'%q' from subscriptions", show ? show : "unavilable"); sql = switch_core_db_mprintf("select *,'%q' from subscriptions", show ? show : "unavilable");
for (hi = switch_hash_first(apr_hash_pool_get(globals.profile_hash), globals.profile_hash); hi; hi = switch_hash_next(hi)) { for (hi = switch_hash_first(apr_hash_pool_get(globals.profile_hash), globals.profile_hash); hi; hi = switch_hash_next(hi)) {
char *errmsg;
switch_hash_this(hi, NULL, NULL, &val); switch_hash_this(hi, NULL, NULL, &val);
profile = (struct mdl_profile *) val; profile = (struct mdl_profile *) val;
char *errmsg;
if (!(profile->user_flags & LDL_FLAG_COMPONENT)) { if (!(profile->user_flags & LDL_FLAG_COMPONENT)) {
continue; continue;
......
...@@ -870,7 +870,7 @@ char *encode_name(char *s) ...@@ -870,7 +870,7 @@ char *encode_name(char *s)
*resource++ = '\0'; *resource++ = '\0';
} }
len = strlen(user) + 25; len = (uint32_t)strlen(user) + 25;
if (at) { if (at) {
*at++ = '\0'; *at++ = '\0';
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论