]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_verto] Fix time_t formatting 2855/head
authorAndrey Volk <andywolk@gmail.com>
Mon, 14 Jul 2025 19:53:20 +0000 (22:53 +0300)
committerAndrey Volk <andywolk@gmail.com>
Mon, 14 Jul 2025 20:09:03 +0000 (23:09 +0300)
src/mod/endpoints/mod_verto/mod_verto.c

index 36aba6db5e29d0dbb7f43310217119739fe0ab7f..c91b39610631dc149b150a41d41035854f542747 100644 (file)
@@ -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 %"TIME_T_FMT" seconds [%"TIME_T_FMT"] [%"TIME_T_FMT"]\n", jsock->uid, (time_t)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;
@@ -2005,7 +2005,7 @@ 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 [%"TIME_T_FMT"] >= [%"TIME_T_FMT"]\n", jsock->uid, now, jsock->exptime);
                        }
 
                }