$OpenBSD: patch-res_res_odbc_c,v 1.2 2019/04/18 19:10:06 sthen Exp $

Index: res/res_odbc.c
--- res/res_odbc.c.orig
+++ res/res_odbc.c
@@ -1038,7 +1038,7 @@ static odbc_status odbc_obj_connect(struct odbc_obj *o
 	/* Dont connect while server is marked as unreachable via negative_connection_cache */
 	negative_cache_expiration = obj->parent->last_negative_connect.tv_sec + obj->parent->negative_connection_cache.tv_sec;
 	if (time(NULL) < negative_cache_expiration) {
-		ast_log(LOG_WARNING, "Not connecting to %s. Negative connection cache for %ld seconds\n", obj->parent->name, negative_cache_expiration - time(NULL));
+		ast_log(LOG_WARNING, "Not connecting to %s. Negative connection cache for %lld seconds\n", obj->parent->name, (long long)negative_cache_expiration - time(NULL));
 		return ODBC_FAIL;
 	}
 
