[rrd-developers] [PATCH 1/2] renamed rrd_cmd_flush to rrd_flush
kevin brintnall
kbrint at rufus.net
Fri Mar 27 00:23:47 CET 2009
---
bindings/lua/rrdlua.c | 2 +-
bindings/perl-shared/RRDs.xs | 2 +-
bindings/python/rrdtoolmodule.c | 2 +-
bindings/ruby/main.c | 2 +-
bindings/tcl/tclrrd.c | 2 +-
src/librrd.sym.in.in | 2 +-
src/rrd.h | 2 +-
src/rrd_flush.c | 2 +-
src/rrd_tool.c | 2 +-
9 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/bindings/lua/rrdlua.c b/bindings/lua/rrdlua.c
index 2060f3b..850b204 100644
--- a/bindings/lua/rrdlua.c
+++ b/bindings/lua/rrdlua.c
@@ -295,7 +295,7 @@ lua_rrd_graph (lua_State * L)
static int
lua_rrd_flush(lua_State *L)
{
- return rrd_common_call(L, "flush", rrd_cmd_flush);
+ return rrd_common_call(L, "flush", rrd_flush);
}
#if defined(DINF)
diff --git a/bindings/perl-shared/RRDs.xs b/bindings/perl-shared/RRDs.xs
index 3cf1d24..d0184c9 100644
--- a/bindings/perl-shared/RRDs.xs
+++ b/bindings/perl-shared/RRDs.xs
@@ -451,6 +451,6 @@ rrd_flush(...)
int i;
char **argv;
CODE:
- rrdcode(rrd_cmd_flush);
+ rrdcode(rrd_flush);
OUTPUT:
RETVAL
diff --git a/bindings/python/rrdtoolmodule.c b/bindings/python/rrdtoolmodule.c
index bd16da1..59802b5 100644
--- a/bindings/python/rrdtoolmodule.c
+++ b/bindings/python/rrdtoolmodule.c
@@ -531,7 +531,7 @@ static PyObject *PyRRD_flush(
if (create_args("flush", args, &argc, &argv) < 0)
return NULL;
- if (rrd_cmd_flush(argc, argv) != 0) {
+ if (rrd_flush(argc, argv) != 0) {
PyErr_SetString(ErrorObject, rrd_get_error());
rrd_clear_error();
r = NULL;
diff --git a/bindings/ruby/main.c b/bindings/ruby/main.c
index 408994f..9903154 100644
--- a/bindings/ruby/main.c
+++ b/bindings/ruby/main.c
@@ -148,7 +148,7 @@ VALUE rb_rrd_flush(
VALUE self,
VALUE args)
{
- return rrd_call(rrd_cmd_flush, args);
+ return rrd_call(rrd_flush, args);
}
diff --git a/bindings/tcl/tclrrd.c b/bindings/tcl/tclrrd.c
index f8a3c84..d70f098 100644
--- a/bindings/tcl/tclrrd.c
+++ b/bindings/tcl/tclrrd.c
@@ -243,7 +243,7 @@ static int Rrd_Flush(
return TCL_ERROR;
}
- rrd_cmd_flush(argc, (char**)argv);
+ rrd_flush(argc, (char**)argv);
if (rrd_test_error()) {
Tcl_AppendResult(interp, "RRD Error: ",
diff --git a/src/librrd.sym.in.in b/src/librrd.sym.in.in
index b4e8484..31da155 100644
--- a/src/librrd.sym.in.in
+++ b/src/librrd.sym.in.in
@@ -1,6 +1,6 @@
rrd_clear_error
rrd_close
-rrd_cmd_flush
+rrd_flush
rrd_create
rrd_create_r
rrd_dontneed
diff --git a/src/rrd.h b/src/rrd.h
index 67c213f..fd7c2fc 100644
--- a/src/rrd.h
+++ b/src/rrd.h
@@ -208,7 +208,7 @@ extern "C" {
unsigned long *,
char ***,
rrd_value_t **);
- int rrd_cmd_flush (int argc, char **argv);
+ int rrd_flush (int argc, char **argv);
void rrd_freemem(
void *mem);
diff --git a/src/rrd_flush.c b/src/rrd_flush.c
index 1f72e80..bbaf826 100644
--- a/src/rrd_flush.c
+++ b/src/rrd_flush.c
@@ -22,7 +22,7 @@
#include "rrd_tool.h"
#include "rrd_client.h"
-int rrd_cmd_flush (int argc, char **argv)
+int rrd_flush (int argc, char **argv)
{
char *opt_daemon = NULL;
int status;
diff --git a/src/rrd_tool.c b/src/rrd_tool.c
index 23e05c0..993e5b4 100644
--- a/src/rrd_tool.c
+++ b/src/rrd_tool.c
@@ -813,7 +813,7 @@ int HandleInputLine(
} else if (strcmp("tune", argv[1]) == 0)
rrd_tune(argc - 1, &argv[1]);
else if (strcmp("flush", argv[1]) == 0)
- rrd_cmd_flush(argc - 1, &argv[1]);
+ rrd_flush(argc - 1, &argv[1]);
else {
rrd_set_error("unknown function '%s'", argv[1]);
}
--
1.6.1.3
More information about the rrd-developers
mailing list