openbsd-ports/telephony/asterisk/patches/patch-res_res_pjsip_registrar_c
2020-09-04 21:22:41 +00:00

15 lines
540 B
Plaintext

$OpenBSD: patch-res_res_pjsip_registrar_c,v 1.9 2020/09/04 21:22:41 sthen Exp $
Index: res/res_pjsip_registrar.c
--- res/res_pjsip_registrar.c.orig
+++ res/res_pjsip_registrar.c
@@ -1280,7 +1280,7 @@ static void *check_expiration_thread(void *data)
while (check_interval) {
sleep(check_interval);
- sprintf(time, "%ld", ast_tvnow().tv_sec);
+ sprintf(time, "%lld", (long long)ast_tvnow().tv_sec);
var = ast_variable_new("expiration_time <=", time, "");
ast_debug(4, "Woke up at %s Interval: %d\n", time, check_interval);