From 8fa250b8e1f324a67e194d803cddffe728fa98ba Mon Sep 17 00:00:00 2001 From: Tobias Oetiker Date: Thu, 14 May 2015 23:54:18 -0400 Subject: [PATCH] makeing patch compile again --- src/rrd_create.c | 4 ++-- src/rrd_diff.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rrd_create.c b/src/rrd_create.c index 04033fb7..32c9bd65 100644 --- a/src/rrd_create.c +++ b/src/rrd_create.c @@ -2304,7 +2304,8 @@ static int cdp_match(const rra_def_t *tofill, const rra_def_t *maybe) { static int rrd_prefill_data(rrd_t *rrd, const GList *sources, mapping_t *mappings, int mappings_cnt) { int rc = -1; long cdp_rra_index = -1; - + int rra_added_temporarily = 0; + if (sources == NULL) { // we are done if there is nothing to copy data from rc = 0; @@ -2314,7 +2315,6 @@ static int rrd_prefill_data(rrd_t *rrd, const GList *sources, mapping_t *mapping unsigned long rra_index, ds_index; unsigned long total_rows = 0; - int rra_added_temporarily = 0; cdp_rra_index = rra_for_cdp_prefilling(rrd, &rra_added_temporarily); if (rrd_test_error()) goto done; diff --git a/src/rrd_diff.c b/src/rrd_diff.c index cc64eb96..93769508 100644 --- a/src/rrd_diff.c +++ b/src/rrd_diff.c @@ -8,7 +8,7 @@ #include #include "rrd_tool.h" -#include "rrd_strtodbl.h" +#include "rrd_strtod.h" double rrd_diff( char *a, -- 2.47.2