fixed path to rrd_format.h in tcl bindings
[rrdtool.git] / bindings / tcl / tclrrd.c
index 33ceb15..11d25df 100644 (file)
@@ -18,8 +18,8 @@
 #include <time.h>
 #include <unistd.h>
 #include <tcl.h>
-#include <rrd_tool.h>
-#include <rrd_format.h>
+#include "../../src/rrd_tool.h"
+#include "../../src/rrd_format.h"
 
 /* support pre-8.4 tcl */
 
@@ -310,7 +310,7 @@ Rrd_Update(ClientData clientData, Tcl_Interp *interp, int argc, CONST84 char *ar
 
 static int
 Rrd_Lastupdate(ClientData clientData, Tcl_Interp *interp, int argc, CONST84 char *argv[])
-  {
+{
    time_t last_update;
    char **argv2;
    char **ds_namv;
@@ -343,6 +343,8 @@ Rrd_Lastupdate(ClientData clientData, Tcl_Interp *interp, int argc, CONST84 char
            free(last_ds);
            free(ds_namv);
           }
+    }
+    return TCL_OK;
 }
 
 static int