summaryrefslogtreecommitdiff
path: root/databases/rrdtool/patches/patch-ay
blob: 7076acf4627c623647aeee2200cd256d4faafdc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ay,v 1.1 2004/02/07 17:44:10 seb Exp $

--- src/rrd_dump.c.orig	Fri Oct 11 18:39:47 2002
+++ src/rrd_dump.c
@@ -40,7 +40,7 @@ rrd_dump(int argc, char **argv)    
 # error "Need strftime"
 #endif
     printf("\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++){
 	printf("\t<ds>\n");
 	printf("\t\t<name> %s </name>\n",rrd.ds_def[i].ds_nam);