[Sheepdog] [PATCH] sheep: remove undefined struct

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Tue Dec 13 08:17:25 CET 2011


Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 sheep/group.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/sheep/group.c b/sheep/group.c
index 72d88b6..4cf81cb 100644
--- a/sheep/group.c
+++ b/sheep/group.c
@@ -63,7 +63,7 @@ struct work_notify {
 	struct sheepdog_node_list_entry sender;
 
 	struct request *req;
-	struct message_header *msg;
+	void *msg;
 };
 
 struct work_join {
@@ -594,7 +594,7 @@ static void __sd_notify(struct cpg_event *cevent)
 static void __sd_notify_done(struct cpg_event *cevent)
 {
 	struct work_notify *w = container_of(cevent, struct work_notify, cev);
-	struct vdi_op_message *msg = (struct vdi_op_message *)w->msg;
+	struct vdi_op_message *msg = w->msg;
 	struct request *req = w->req;
 	int ret = msg->rsp.result;
 	struct sd_op_template *op = get_sd_op(msg->req.opcode);
@@ -717,12 +717,9 @@ static void __sd_leave(struct cpg_event *cevent)
 static enum cluster_join_result sd_check_join_cb(
 	struct sheepdog_node_list_entry *joining, void *opaque)
 {
-	struct message_header *m = opaque;
-	struct join_message *jm;
+	struct join_message *jm = opaque;
 	struct node *node;
 
-	jm = (struct join_message *)m;
-
 	if (node_cmp(joining, &sys->this_node) == 0) {
 		struct sheepdog_node_list_entry entries[SD_MAX_NODES];
 		int nr_entries;
-- 
1.7.2.5




More information about the sheepdog mailing list