summaryrefslogtreecommitdiff
path: root/net/nagios-base/patches/patch-base_logging.c
blob: dc71c2189dc4577d44456eb932e47d95e2fdc3ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD$

64bit time_t workaround

--- base/logging.c.orig	2016-02-07 13:23:57.000000000 +0100
+++ base/logging.c	2016-02-07 13:24:50.000000000 +0100
@@ -184,7 +184,7 @@
 	strip(buffer);
 
 	/* write the buffer to the log file */
-	fprintf(fp, "[%lu] %s\n", log_time, buffer);
+	fprintf(fp, "[%lu] %s\n", (u_long)log_time, buffer);
 	fflush(fp);
 
 #ifdef USE_EVENT_BROKER