]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
makeing patch compile again 618/head
authorTobias Oetiker <tobi@oetiker.ch>
Fri, 15 May 2015 03:54:18 +0000 (23:54 -0400)
committerTobias Oetiker <tobi@oetiker.ch>
Fri, 15 May 2015 03:54:18 +0000 (23:54 -0400)
src/rrd_create.c
src/rrd_diff.c

index 04033fb72d2d7fe27da4fce9f9b89361c8e1a670..32c9bd65e49e9399e33b2a8b9db8dbff93f55137 100644 (file)
@@ -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;
index cc64eb96e265f8c430255991a5356a126902d1c4..93769508aeea92a09ddce3d21c431ffe21b76ac9 100644 (file)
@@ -8,7 +8,7 @@
 
 #include <ctype.h>
 #include "rrd_tool.h"
-#include "rrd_strtodbl.h"
+#include "rrd_strtod.h"
 
 double rrd_diff(
     char *a,