From: Tobias Oetiker Date: Sun, 7 Jun 2009 14:46:21 +0000 (+0000) Subject: switch to the rrd_flushcached interface X-Git-Tag: 1.4.0~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a186985bf12659190479c60ccf7a63ec88717e9;p=thirdparty%2Frrdtool-1.x.git switch to the rrd_flushcached interface git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1854 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/bindings/tcl/tclrrd.c b/bindings/tcl/tclrrd.c index 92772571..a98a2d7c 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);