summaryrefslogtreecommitdiff
path: root/comms/asterisk18/patches/patch-main_astmm.c
blob: 8b302fffb39ef7cad2aca6ce7f665990cb5a07b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-main_astmm.c,v 1.2 2021/06/13 07:57:53 jnemeth Exp $

--- main/astmm.c.orig	2015-10-09 21:48:48.000000000 +0000
+++ main/astmm.c
@@ -1487,7 +1487,7 @@ void __ast_mm_init_phase_2(void)
 
 	mmlog = fopen(filename, "a+");
 	if (mmlog) {
-		fprintf(mmlog, "%ld - New session\n", (long) time(NULL));
+		fprintf(mmlog, "%jd - New session\n", (intmax_t) time(NULL));
 		fflush(mmlog);
 	} else {
 		ast_log(LOG_ERROR, "Could not open malloc debug log file: %s\n", filename);