summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2018-05-10 13:50:01 +1000
committerMartin Schwenke <martins@samba.org>2018-06-05 22:34:18 +0200
commit4d27c11ce26bf835448862b6d901056125b5414f (patch)
tree4076b4b2df4efa71e7bc413ea9e0d9e55d19a9e0 /ctdb
parenta883f8b0920d68d2d3b923463de59384a4eb8e8f (diff)
downloadsamba-4d27c11ce26bf835448862b6d901056125b5414f.tar.gz
ctdb-common: Rename run_event_script_list to run_event_list
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb')
-rw-r--r--ctdb/common/run_event.c6
-rw-r--r--ctdb/common/run_event.h6
-rw-r--r--ctdb/server/ctdb_eventd.c3
-rw-r--r--ctdb/tests/src/run_event_test.c2
4 files changed, 8 insertions, 9 deletions
diff --git a/ctdb/common/run_event.c b/ctdb/common/run_event.c
index c78d956f588..aba9014bbaf 100644
--- a/ctdb/common/run_event.c
+++ b/ctdb/common/run_event.c
@@ -389,9 +389,9 @@ static int run_event_script_status(struct run_event_script *script)
return ret;
}
-int run_event_script_list(struct run_event_context *run_ctx,
- TALLOC_CTX *mem_ctx,
- struct run_event_script_list **output)
+int run_event_list(struct run_event_context *run_ctx,
+ TALLOC_CTX *mem_ctx,
+ struct run_event_script_list **output)
{
struct run_event_script_list *script_list;
int ret, i;
diff --git a/ctdb/common/run_event.h b/ctdb/common/run_event.h
index 72878e150a5..361ef56e398 100644
--- a/ctdb/common/run_event.h
+++ b/ctdb/common/run_event.h
@@ -87,9 +87,9 @@ int run_event_init(TALLOC_CTX *mem_ctx, struct run_proc_context *run_proc_ctx,
* @param[out] output List of valid scripts
* @return 0 on success, errno on failure
*/
-int run_event_script_list(struct run_event_context *run_ctx,
- TALLOC_CTX *mem_ctx,
- struct run_event_script_list **output);
+int run_event_list(struct run_event_context *run_ctx,
+ TALLOC_CTX *mem_ctx,
+ struct run_event_script_list **output);
/**
* @brief Enable a script
diff --git a/ctdb/server/ctdb_eventd.c b/ctdb/server/ctdb_eventd.c
index f1c8a8c8fec..586870c05af 100644
--- a/ctdb/server/ctdb_eventd.c
+++ b/ctdb/server/ctdb_eventd.c
@@ -436,8 +436,7 @@ static struct tevent_req *command_script_list_send(
return tevent_req_post(req, ev);
}
- ret = run_event_script_list(eventd_run_context(ectx), state->reply,
- &s);
+ ret = run_event_list(eventd_run_context(ectx), state->reply, &s);
if (ret != 0) {
tevent_req_error(req, ret);
return tevent_req_post(req, ev);
diff --git a/ctdb/tests/src/run_event_test.c b/ctdb/tests/src/run_event_test.c
index ddee92ed824..9baee3d9111 100644
--- a/ctdb/tests/src/run_event_test.c
+++ b/ctdb/tests/src/run_event_test.c
@@ -110,7 +110,7 @@ static void do_list(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
struct run_event_script_list *script_list = NULL;
int ret, i;
- ret = run_event_script_list(run_ctx, mem_ctx, &script_list);
+ ret = run_event_list(run_ctx, mem_ctx, &script_list);
if (ret != 0) {
printf("Script list failed with result=%d\n", ret);
return;