From: Anthony Minessale Date: Fri, 11 Dec 2009 22:09:36 +0000 (+0000) Subject: typo in log message X-Git-Tag: v1.0.6~1036 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c68fc40766be4a56f35589b5f85ab2e6df1c86a2;p=thirdparty%2Ffreeswitch.git typo in log message git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15921 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia_reg.c b/src/mod/endpoints/mod_sofia/sofia_reg.c index f5f6849795..393779fa58 100644 --- a/src/mod/endpoints/mod_sofia/sofia_reg.c +++ b/src/mod/endpoints/mod_sofia/sofia_reg.c @@ -363,7 +363,7 @@ void sofia_reg_check_gateway(sofia_profile_t *profile, time_t now) case REG_STATE_FAILED: { - int sec; + time_t sec; if (gateway_ptr->failure_status == 503) { sec = now + gateway_ptr->retry_seconds; @@ -376,8 +376,8 @@ void sofia_reg_check_gateway(sofia_profile_t *profile, time_t now) gateway_ptr->state = REG_STATE_FAIL_WAIT; gateway_ptr->failure_status = 0; - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "%s Failed Registration, setting retry to %d seconds.\n", - gateway_ptr->name, sec); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "%s Failed Registration, setting retry to %ld seconds.\n", + gateway_ptr->name, (long)sec - now); } break;