Signed-off-by: Angus Salkeld <[email protected]>
---
 cts/agents/syncv2.c |   18 +++---------------
 1 files changed, 3 insertions(+), 15 deletions(-)

diff --git a/cts/agents/syncv2.c b/cts/agents/syncv2.c
index a98c539..0b46558 100644
--- a/cts/agents/syncv2.c
+++ b/cts/agents/syncv2.c
@@ -76,8 +76,6 @@ static void tst_sv2_confchg_fn (
        const unsigned int *joined_list, size_t joined_list_entries,
        const struct memb_ring_id *ring_id);
 
-static int tst_sv2_lib_init_fn (void *conn);
-static int tst_sv2_lib_exit_fn (void *conn);
 static struct corosync_api_v1 *api;
 
 static void tst_sv2_sync_init_v2 (
@@ -99,8 +97,8 @@ struct corosync_service_engine tst_sv2_service_engine = {
        .priority               = 1,
        .private_data_size      = 0,
        .flow_control           = CS_LIB_FLOW_CONTROL_NOT_REQUIRED,
-       .lib_init_fn            = tst_sv2_lib_init_fn,
-       .lib_exit_fn            = tst_sv2_lib_exit_fn,
+       .lib_init_fn            = NULL,
+       .lib_exit_fn            = NULL,
        .lib_engine             = NULL,
        .lib_engine_count       = 0,
        .exec_engine            = NULL,
@@ -192,6 +190,7 @@ static int tst_sv2_exec_exit_fn (void)
        if (exit_count < 4) {
                return -1;
        }
+       return 0;
 }
 
 static void tst_sv2_confchg_fn (
@@ -212,17 +211,6 @@ static void tst_sv2_confchg_fn (
        }
 }
 
-static int tst_sv2_lib_init_fn (void *conn)
-{
-       return (0);
-}
-
-static int tst_sv2_lib_exit_fn (void *conn)
-{
-       return (0);
-}
-
-
 static void tst_sv2_sync_init_v2 (
        const unsigned int *member_list,
        size_t member_list_entries,
-- 
1.7.3.1

_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to