X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=bindings%2Ftcl%2Ftclrrd.c;h=a98a2d7c2ac23f82847e8991a5287f4550f74d03;hb=7f749092fea23d8e7066731e8ddf3741072ef5b3;hp=92772571423a4ac88b698b4569080712e0da02d9;hpb=4dbd51c362841d00433c95c9b671e818ec2d6df3;p=rrdtool.git diff --git a/bindings/tcl/tclrrd.c b/bindings/tcl/tclrrd.c index 9277257..a98a2d7 100644 --- a/bindings/tcl/tclrrd.c +++ b/bindings/tcl/tclrrd.c @@ -243,7 +243,7 @@ static int Rrd_Flushcached( return TCL_ERROR; } - rrd_cmd_flush(argc, (char**)argv); + rrd_flushcached(argc, (char**)argv); if (rrd_test_error()) { Tcl_AppendResult(interp, "RRD Error: ", @@ -504,7 +504,7 @@ static int Rrd_Graph( * Must dup() file descriptor so we can fclose(stream), otherwise the fclose() * would close Tcl's file descriptor */ - if ((fd2 = dup((int) fd1)) == -1) { + if ((fd2 = dup((int)fd1)) == -1) { Tcl_AppendResult(interp, "dup() failed for file descriptor associated with \"", argv[1], "\": ", strerror(errno), (char *) NULL);