summaryrefslogtreecommitdiff
path: root/databases/rrdtool12/patches/patch-aw
blob: 09737491d5abdbf6d515c8186d0ea52864a934b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$NetBSD: patch-aw,v 1.2 2009/01/02 20:07:10 martti Exp $

Adjust for pkgsrc.

--- src/rrd_tool.c.orig	2008-12-16 00:05:13.000000000 +0200
+++ src/rrd_tool.c	2009-01-02 21:37:38.000000000 +0200
@@ -697,9 +697,9 @@
 	  printf("<?xml version=\"1.0\" encoding=\"%s\"?>\n\n", XML_ENCODING);
 	  printf("<%s>\n", ROOT_TAG);
 	  printf("  <%s>\n", META_TAG);
-	  printf("    <%s>%lu</%s>\n", META_START_TAG, start+step, META_START_TAG);
+	  printf("    <%s>%lu</%s>\n", META_START_TAG, (unsigned long) start+step, META_START_TAG);
 	  printf("    <%s>%lu</%s>\n", META_STEP_TAG, step, META_STEP_TAG);
-	  printf("    <%s>%lu</%s>\n", META_END_TAG, end, META_END_TAG);
+	  printf("    <%s>%lu</%s>\n", META_END_TAG, (unsigned long) end, META_END_TAG);
 	  printf("    <%s>%lu</%s>\n", META_ROWS_TAG, row_cnt, META_ROWS_TAG);
 	  printf("    <%s>%lu</%s>\n", META_COLS_TAG, col_cnt, META_COLS_TAG);
 	  printf("    <%s>\n", LEGEND_TAG);
@@ -715,7 +715,7 @@
 	  printf("  <%s>\n", DATA_TAG);
 	  for (ti = start+step; ti <= end; ti += step) {
 	    printf ("    <%s>", DATA_ROW_TAG);
-	    printf ("<%s>%lu</%s>", COL_TIME_TAG, ti, COL_TIME_TAG);
+	    printf ("<%s>%lu</%s>", COL_TIME_TAG, (unsigned long) ti, COL_TIME_TAG);
 	    for (j = 0; j < col_cnt; j++) {
 	      rrd_value_t newval = DNAN;
               if (enumds == 1)