summaryrefslogtreecommitdiff
path: root/net/nagios-base/patches/patch-base_nerd.c
blob: 7be1f1c9e4acc430988f2e451af93a01fe412ffc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-base_nerd.c,v 1.1 2016/02/07 21:52:06 bouyer Exp $

64bit time_t workaround

--- base/nerd.c.orig	2016-02-07 21:13:59.000000000 +0100
+++ base/nerd.c	2016-02-07 21:14:15.000000000 +0100
@@ -337,7 +337,7 @@
 	} else
 		return 0;
 
-	asprintf(&buf, "%lu|%s|M|%s/%s|%06X\n", cr->finish_time.tv_sec,
+	asprintf(&buf, "%lu|%s|M|%s/%s|%06X\n", (unsigned long)cr->finish_time.tv_sec,
 			 check_result_source(cr), host_parent_path(h, '/'), name, color);
 	nerd_broadcast(chan_opath_checks_id, buf, strlen(buf));
 	free(buf);