]> git.itanic.dy.fi Git - rrdd/commitdiff
Suppress warning messages
authorTimo Kokkonen <kaapeli@ee.oulu.fi>
Tue, 1 Apr 2008 18:08:52 +0000 (21:08 +0300)
committerTimo Kokkonen <kaapeli@ee.oulu.fi>
Tue, 1 Apr 2008 18:08:52 +0000 (21:08 +0300)
draw_graphs.c
main.c

index 39549a2287fc094a763c1f1fa0b121e024cf3e27..fba8ded479b0c86da59b8734b4f9436299cbfad7 100644 (file)
@@ -34,7 +34,7 @@ int draw_image(struct rrd_image *image)
        timestamp[j] = 0;
 
 
-       print("");
+       print(" ");
        print("graph");
        print(image->image_filename);
 
diff --git a/main.c b/main.c
index eb6c4f7add1723696b4945e58482f49f212cd90f..91c10cfaa1fc751fcabf89d862e45150e8c23492 100644 (file)
--- a/main.c
+++ b/main.c
@@ -19,7 +19,8 @@ int main(int argc, char *argv[])
                /*
                 * Update all databases parallel in one shot
                 */
-               while ((db = check_update_need(&all_rrds)))
+               while ((db = check_update_need((struct rrd_database **)
+                                              &all_rrds)))
                        update_data(db);
 
                /*
@@ -28,7 +29,7 @@ int main(int argc, char *argv[])
                if (harvest_zombies(0))
                        continue;
 
-               sleeptime = get_next_update(&all_rrds);
+               sleeptime = get_next_update((struct rrd_database **)&all_rrds);
                printf("Time to sleep %d seconds\n", sleeptime);
                sleep(sleeptime);