1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

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>
This commit is contained in:
Amitay Isaacs 2018-05-10 13:50:01 +10:00 committed by Martin Schwenke
parent a883f8b092
commit 4d27c11ce2
4 changed files with 8 additions and 9 deletions

View File

@ -389,7 +389,7 @@ static int run_event_script_status(struct run_event_script *script)
return ret;
}
int run_event_script_list(struct run_event_context *run_ctx,
int run_event_list(struct run_event_context *run_ctx,
TALLOC_CTX *mem_ctx,
struct run_event_script_list **output)
{

View File

@ -87,7 +87,7 @@ 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,
int run_event_list(struct run_event_context *run_ctx,
TALLOC_CTX *mem_ctx,
struct run_event_script_list **output);

View File

@ -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);

View File

@ -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;