$OpenBSD: patch-res_res_pjsip_registrar_c,v 1.6 2019/05/31 10:36:27 sthen Exp $

Index: res/res_pjsip_registrar.c
--- res/res_pjsip_registrar.c.orig
+++ res/res_pjsip_registrar.c
@@ -1260,7 +1260,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);
