summaryrefslogtreecommitdiff
path: root/comms/asterisk18/patches/patch-tests_test__voicemail__api.c
blob: bb6fef61fbac295176f748fd65090987a902ccc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-tests_test__voicemail__api.c,v 1.1.1.1 2021/06/13 07:47:18 jnemeth Exp $

--- tests/test_voicemail_api.c.orig	2015-10-09 21:48:48.000000000 +0000
+++ tests/test_voicemail_api.c
@@ -383,7 +383,7 @@ static struct ast_vm_msg_snapshot *test_
 	struct ast_vm_msg_snapshot *snapshot;
 
 	snprintf(msg_id_hash, sizeof(msg_id_hash), "%s%s%s", exten, context, callerid);
-	snprintf(msg_id_buf, sizeof(msg_id_buf), "%ld-%d", (long)time(NULL), ast_str_hash(msg_id_hash));
+	snprintf(msg_id_buf, sizeof(msg_id_buf), "%jd-%d", (intmax_t)time(NULL), ast_str_hash(msg_id_hash));
 
 	if ((snapshot = ast_calloc(1, sizeof(*snapshot)))) {
 		if (ast_string_field_init(snapshot, 128)) {