Revision
14929
Author
brian
Date
2009-09-20 15:18:02 -0500 (Sun, 20 Sep 2009)

Log Message

 LBDING-16

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c (14928 => 14929)


--- freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c	2009-09-20 20:16:28 UTC (rev 14928)
+++ freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c	2009-09-20 20:18:02 UTC (rev 14929)
@@ -2310,6 +2310,7 @@
 	 (new_profile->context && profile->context && !strcasecmp(new_profile->context, profile->context))) &&
 	(new_profile->user_flags == profile->user_flags) && (new_profile->acl_count == profile->acl_count)
 	) {
+		int i;
 		if (switch_odbc_available()) {
 			if(!(
 			((!new_profile->odbc_dsn && !profile->odbc_dsn) || 
@@ -2323,7 +2324,7 @@
 			}
 		}
 
-		for(int i=0; i<new_profile->acl_count; i++) {
+		for(i=0; i<new_profile->acl_count; i++) {
 			if(strcasecmp(new_profile->acl[i], profile->acl[i]) != 0) {
 				return SWITCH_FALSE;
 			}
@@ -2378,6 +2379,7 @@
 
 	void *data = NULL;
 	switch_hash_t *name_hash;
+	switch_hash_index_t *hi;
 	switch_core_hash_init(&name_hash, module_pool);
 
 	if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
@@ -2466,7 +2468,7 @@
 
 	switch_xml_free(xml);
 
-	for (switch_hash_index_t *hi = switch_hash_first(NULL, globals.profile_hash); hi; hi = switch_hash_next(hi)) {
+	for (hi = switch_hash_first(NULL, globals.profile_hash); hi; hi = switch_hash_next(hi)) {
 		switch_hash_this(hi, NULL, NULL, &data);
 		profile = (mdl_profile_t *) data;
 
@@ -2477,7 +2479,7 @@
 		}
 	}
 
-	for (switch_hash_index_t *hi = switch_hash_first(NULL, name_hash); hi; hi = switch_hash_next(hi)) {
+	for (hi = switch_hash_first(NULL, name_hash); hi; hi = switch_hash_next(hi)) {
 		switch_hash_this(hi, NULL, NULL, &data);
 
 		if((profile = switch_core_hash_find(globals.profile_hash, (char*)data))) {