$OpenBSD: patch-res_res_pjsip_registrar_c,v 1.2 2018/09/06 13:32:00 sthen Exp $

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