]> git.itanic.dy.fi Git - rrdd/commitdiff
rrdtool: Remove unused variables
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sat, 9 Jul 2016 10:21:15 +0000 (13:21 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sat, 9 Jul 2016 10:21:15 +0000 (13:21 +0300)
These are leftovers from making the run() function synchronous.

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

index 9fed184cce5e649c6072973b417e3c24da4a594f..e7eedc7603927ebc8aa364844ff1184222b76b5c 100644 (file)
--- a/rrdtool.c
+++ b/rrdtool.c
@@ -34,7 +34,6 @@
 
 int rrdtool_draw_image(struct rrd_image *image)
 {
 
 int rrdtool_draw_image(struct rrd_image *image)
 {
-       int pid;
        char cmd[] = RRDTOOL_CMD;
 //     char cmd[] = "echo";
        char *args[512], argstr[ARGSTR_LEN];
        char cmd[] = RRDTOOL_CMD;
 //     char cmd[] = "echo";
        char *args[512], argstr[ARGSTR_LEN];
@@ -253,7 +252,6 @@ static int write_to_logfile(struct rrd_database *rrd, const char *data)
 
 static int do_rrdtool_update_data(struct rrd_database *rrd)
 {
 
 static int do_rrdtool_update_data(struct rrd_database *rrd)
 {
-       int pid;
        char data[RRD_DATA_MAX_LEN + 3]; /* 3 == "N:" + NULL termination */
        char cmd[] = RRDTOOL_CMD;
 //     char cmd[] = "echo";
        char data[RRD_DATA_MAX_LEN + 3]; /* 3 == "N:" + NULL termination */
        char cmd[] = RRDTOOL_CMD;
 //     char cmd[] = "echo";