c0085aa793fd441f7734b854a50cdb82d9bfd067
[feed/telephony.git] / net / freeswitch / patches / 492-mod_verto_time64.patch
1 --- a/src/mod/endpoints/mod_verto/mod_verto.c
2 +++ b/src/mod/endpoints/mod_verto/mod_verto.c
3 @@ -1126,7 +1126,7 @@ static switch_bool_t check_auth(jsock_t
4
5 if (tmp > now) {
6 jsock->exptime = tmp;
7 - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Login expire time for %s set to %ld seconds [%ld] [%ld]\n", jsock->uid, tmp - now, jsock->exptime, now);
8 + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Login expire time for %s set to %" TIME_T_FMT " seconds [%" TIME_T_FMT "] [%" TIME_T_FMT "]\n", jsock->uid, TIME_T_CAST(tmp - now), TIME_T_CAST(jsock->exptime), TIME_T_CAST(now));
9 } else {
10 switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Invalid expire time for %s. Defaulting to 300 sec\n", jsock->uid);
11 jsock->exptime = now + 300;
12 @@ -2000,7 +2000,7 @@ static void client_run(jsock_t *jsock)
13
14 if (now >= jsock->exptime) {
15 switch_set_flag(jsock, JPFLAG_AUTH_EXPIRED);
16 - die("%s Authentication Expired [%ld] >= [%ld]\n", jsock->uid, now, jsock->exptime);
17 + die("%s Authentication Expired [%" TIME_T_FMT "] >= [%" TIME_T_FMT "]\n", jsock->uid, TIME_T_CAST(now), TIME_T_CAST(jsock->exptime));
18 }
19
20 }