Author: mikej Date: Thu Jun 11 10:59:08 2009 New Revision: 13755 Log: code before declaration (FSBUILD-172) Modified: freeswitch/trunk/src/mod/applications/mod_nibblebill/mod_nibblebill.c Modified: freeswitch/trunk/src/mod/applications/mod_nibblebill/mod_nibblebill.c ============================================================================== --- freeswitch/trunk/src/mod/applications/mod_nibblebill/mod_nibblebill.c (original) +++ freeswitch/trunk/src/mod/applications/mod_nibblebill/mod_nibblebill.c Thu Jun 11 10:59:08 2009 @@ -386,6 +386,7 @@ switch_time_exp_t tm; const char *billrate; const char *billaccount; + float balance; if (!session) { /* Why are we here? */ @@ -421,8 +422,6 @@ if (profile->times->answered < 1) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Not billing %s - call is not in answered state\n", billaccount); - float balance; - /* See if this person has enough money left to continue the call */ balance = get_balance(billaccount); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Comparing %f to hangup balance of %f\n", balance, globals.nobal_amt); @@ -500,8 +499,6 @@ if (channel && switch_channel_get_state(channel) != CS_HANGUP) { switch_channel_set_private(channel, "_nibble_data_", nibble_data); - float balance; - /* See if this person has enough money left to continue the call */ balance = get_balance(billaccount); if (balance <= globals.nobal_amt) {