fix windows build from recent changes.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3091 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2006-10-19 01:28:29 +00:00
parent faf7cd383b
commit 3eb8ebd45c
3 changed files with 142 additions and 141 deletions
@@ -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);
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);
profile = (struct mdl_profile *) val;
char *errmsg;
if (!(profile->user_flags & LDL_FLAG_COMPONENT)) {
continue;
@@ -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");
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);
profile = (struct mdl_profile *) val;
char *errmsg;
if (!(profile->user_flags & LDL_FLAG_COMPONENT)) {
continue;
+1 -1
View File
@@ -870,7 +870,7 @@ char *encode_name(char *s)
*resource++ = '\0';
}
len = strlen(user) + 25;
len = (uint32_t)strlen(user) + 25;
if (at) {
*at++ = '\0';