]> git.itanic.dy.fi Git - rrdd/commitdiff
rrdtool: Rename rrdtool_check_databases() to rrdtool_create_missing_databases()
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sat, 14 Apr 2012 17:38:05 +0000 (20:38 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sat, 14 Apr 2012 17:38:05 +0000 (20:38 +0300)
This name is more descriptive with respect to what the function
actually does.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
main.c
rrdtool.c
rrdtool.h

diff --git a/main.c b/main.c
index fdea8711a31b10fa2171f2575563f44c21857c40..34e201aa9d143ccef9a3ec93b283c396fd17ce9b 100644 (file)
--- a/main.c
+++ b/main.c
@@ -15,7 +15,7 @@ int main(int argc, char *argv[])
        struct rrd_database *db;
        int sleeptime;
 
-       rrdtool_check_databases(all_rrds);
+       rrdtool_create_missing_databases(all_rrds);
 
        while (1) {
                pr_info("loop start\n");
index 3e54edf1b3096ab7916f502bfc38abe5b8ccab11..84f73b05f21f7964e0b9a598068166386f43744f 100644 (file)
--- a/rrdtool.c
+++ b/rrdtool.c
@@ -246,7 +246,7 @@ static int create_database(struct rrd_database *db)
        return 0;
 }
 
-int rrdtool_check_databases(struct rrd_database *dbs[])
+int rrdtool_create_missing_databases(struct rrd_database *dbs[])
 {
        struct rrd_database *db;
        int i;
index 8f3222d677b1d26dab2fb687d40bfb251cdd8325..b45f51f531d68042957e4e7be87e3d6824d1845e 100644 (file)
--- a/rrdtool.h
+++ b/rrdtool.h
@@ -51,7 +51,7 @@ struct rrd_database {
 int rrdtool_draw_image(struct rrd_image *image);
 int rrdtool_draw_images(struct rrd_image **image);
 int rrdtool_update_data(struct rrd_database *rrd);
-int rrdtool_check_databases(struct rrd_database *dbs[]);
+int rrdtool_create_missing_databases(struct rrd_database *dbs[]);
 
 
 #endif