[Freeswitch-svn] [commit] r8740 - freeswitch/trunk/src/mod/event_handlers/mod_radius_cdr

Freeswitch SVN stkn at freeswitch.org
Mon Jun 2 15:21:42 EDT 2008


Author: stkn
Date: Mon Jun  2 15:21:41 2008
New Revision: 8740

Modified:
   freeswitch/trunk/src/mod/event_handlers/mod_radius_cdr/mod_radius_cdr.c

Log:
fix c99 warning

Modified: freeswitch/trunk/src/mod/event_handlers/mod_radius_cdr/mod_radius_cdr.c
==============================================================================
--- freeswitch/trunk/src/mod/event_handlers/mod_radius_cdr/mod_radius_cdr.c	(original)
+++ freeswitch/trunk/src/mod/event_handlers/mod_radius_cdr/mod_radius_cdr.c	Mon Jun  2 15:21:41 2008
@@ -48,6 +48,7 @@
 
 static rc_handle *my_radius_init(void)
 {
+	int i = 0;
 	rc_handle *rad_config;
 
 	rad_config = rc_new();
@@ -81,7 +82,7 @@
 
 	/* Add the module configs to initialize rad_config */
 
-	for (int i = 0; i < SERVER_MAX && my_servers[i][0] != '\0'; i++) {
+	for (i = 0; i < SERVER_MAX && my_servers[i][0] != '\0'; i++) {
 		if (rc_add_config(rad_config, "acctserver", my_servers[i], cf, 0) != 0) {
 			switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "setting acctserver = %s failed\n", my_servers[i]);
 			rc_destroy(rad_config);
@@ -604,6 +605,7 @@
 	switch_xml_t cfg, xml, settings, param;
 
 	int num_servers = 0;
+	int i = 0;
 
 	my_timeout = "5";
 	my_retries = "3";
@@ -611,7 +613,7 @@
 	strncpy(my_seqfile, "/var/run/radius.seq", PATH_MAX - 1);
 	strncpy(my_dictionary, "/usr/local/freeswitch/conf/radius/dictionary", PATH_MAX - 1);
 
-	for (int i = 0; i < SERVER_MAX; i++) {
+	for (i = 0; i < SERVER_MAX; i++) {
 		my_servers[i][0] = '\0';
 	}
 



More information about the Freeswitch-svn mailing list