summaryrefslogtreecommitdiff
path: root/databases/rrdtool/patches/patch-ay
blob: 97043091dedfc135a1e41da38df251c9140758a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ay,v 1.5 2007/05/16 09:01:11 martti Exp $

--- src/rrd_dump.c.orig	2007-05-02 21:06:10.000000000 +0300
+++ src/rrd_dump.c	2007-05-16 08:44:23.000000000 +0300
@@ -113,7 +113,7 @@
 # error "Need strftime"
 #endif
     fprintf(out_file, "\t<lastupdate> %ld </lastupdate> <!-- %s -->\n\n",
-	   rrd.live_head->last_up,somestring);
+	   (long) rrd.live_head->last_up,somestring);
     for(i=0;i<rrd.stat_head->ds_cnt;i++){
 	   fprintf(out_file, "\t<ds>\n");
 	   fprintf(out_file, "\t\t<name> %s </name>\n",rrd.ds_def[i].ds_nam);