diff options
Diffstat (limited to 'ctdb')
| -rw-r--r-- | ctdb/tests/src/ctdb_test.c | 6 | ||||
| -rw-r--r-- | ctdb/tests/src/ctdb_tool_stubby.c | 11 |
2 files changed, 0 insertions, 17 deletions
diff --git a/ctdb/tests/src/ctdb_test.c b/ctdb/tests/src/ctdb_test.c index 42218131ca..d692248535 100644 --- a/ctdb/tests/src/ctdb_test.c +++ b/ctdb/tests/src/ctdb_test.c @@ -27,10 +27,6 @@ #include <stdio.h> #include <sys/socket.h> -#define tevent_context_init(x) tevent_context_init_foobar(x) -struct tevent_context *tevent_context_init_foobar(TALLOC_CTX *mem_ctx); -#define tevent_loop_allow_nesting(x) tevent_loop_allow_nesting_foobar(x) -void tevent_loop_allow_nesting_foobar(struct tevent_context *ev); #define ctdb_cmdline_client(x, y) ctdb_cmdline_client_foobar(x, y) #define ctdb_get_socketname(x) ctdb_get_socketname_foobar(x) @@ -45,8 +41,6 @@ void tevent_loop_allow_nesting_foobar(struct tevent_context *ev); #include "tools/ctdb.c" #ifdef CTDB_TEST_USE_MAIN -#undef tevent_context_init -#undef tevent_loop_allow_nesting #undef ctdb_cmdline_client #undef ctdb_get_socketname #else diff --git a/ctdb/tests/src/ctdb_tool_stubby.c b/ctdb/tests/src/ctdb_tool_stubby.c index c388c63070..9a36030e69 100644 --- a/ctdb/tests/src/ctdb_tool_stubby.c +++ b/ctdb/tests/src/ctdb_tool_stubby.c @@ -22,11 +22,6 @@ #include "libctdb_test.c" -void tevent_loop_allow_nesting_foobar(struct tevent_context *ev) -{ - return; -} - struct ctdb_context *ctdb_cmdline_client_foobar(struct tevent_context *ev, struct timeval req_timeout) { @@ -37,12 +32,6 @@ struct ctdb_context *ctdb_cmdline_client_foobar(struct tevent_context *ev, return ret; } -struct tevent_context *tevent_context_init_foobar(TALLOC_CTX *mem_ctx) -{ - /* This should obviously never be used... */ - return (struct tevent_context *) 1; -} - const char *ctdb_get_socketname_foobar(struct ctdb_context *ctdb) { return LIBCTDB_TEST_FAKESTATE; |
