Jelajahi Sumber

libqb: remove the lib init/exit from the test service agent

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Angus Salkeld 15 tahun lalu
induk
melakukan
4026d78e0f
1 mengubah file dengan 3 tambahan dan 15 penghapusan
  1. 3 15
      cts/agents/syncv2.c

+ 3 - 15
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,