Skip to content

Commit

Permalink
[mod_verto] use SWITCH_TIME_T_FMT
Browse files Browse the repository at this point in the history
  • Loading branch information
seven1240 committed Jan 13, 2025
1 parent e343b47 commit d582d8e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/mod/endpoints/mod_verto/mod_verto.c
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,7 @@ static switch_bool_t check_auth(jsock_t *jsock, cJSON *params, int *code, char *

if (tmp > now) {
jsock->exptime = tmp;
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);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Login expire time for %s set to %" SWITCH_TIME_T_FMT " seconds [%ld] [%ld]\n", jsock->uid, tmp - now, jsock->exptime, now);
} else {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Invalid expire time for %s. Defaulting to 300 sec\n", jsock->uid);
jsock->exptime = now + 300;
Expand Down Expand Up @@ -2005,9 +2005,8 @@ static void client_run(jsock_t *jsock)

if (now >= jsock->exptime) {
switch_set_flag(jsock, JPFLAG_AUTH_EXPIRED);
die("%s Authentication Expired [%ld] >= [%ld]\n", jsock->uid, now, jsock->exptime);
die("%s Authentication Expired [%" SWITCH_TIME_T_FMT "] >= [%" SWITCH_TIME_T_FMT "]\n", jsock->uid, now, jsock->exptime);
}

}

if (jsock->drop) { die("%s Dropping Connection\n", jsock->name); }
Expand Down

0 comments on commit d582d8e

Please sign in to comment.