X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_graph.c;h=c6805450e68d0733b45d232a978dd37daeab1750;hb=46a2db0465372eae273b1ff827e465a779339198;hp=f5a63c320f105643b1a91f9526a9d21be5e38b4c;hpb=a98fc4d8a1733d6be8eb5d52430491de5305d88b;p=rrdtool.git diff --git a/src/rrd_graph.c b/src/rrd_graph.c index f5a63c3..c680545 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -846,24 +846,24 @@ int data_fetch( } if (!skip) { unsigned long ft_step = im->gdes[i].step; /* ft_step will record what we got from fetch */ - const char *daemon; + const char *rrd_daemon; int status; if (im->gdes[i].daemon[0] != 0) - daemon = im->gdes[i].daemon; + rrd_daemon = im->gdes[i].daemon; else - daemon = im->daemon_addr; + rrd_daemon = im->daemon_addr; /* "daemon" may be NULL. ENV_RRDCACHED_ADDRESS is evaluated in that * case. If "daemon" holds the same value as in the previous * iteration, no actual new connection is established - the * existing connection is re-used. */ - rrdc_connect (daemon); + rrdc_connect (rrd_daemon); /* If connecting was successfull, use the daemon to query the data. * If there is no connection, for example because no daemon address * was specified, (try to) use the local file directly. */ - if (rrdc_is_connected (daemon)) + if (rrdc_is_connected (rrd_daemon)) { status = rrdc_fetch (im->gdes[i].rrd, cf_to_string (im->gdes[i].cf),