[sheepdog] [PATCH stable-0.6 1/2] collie: remove a compiler warning

Hitoshi Mitake mitake.hitoshi at lab.ntt.co.jp
Mon Sep 2 04:39:31 CEST 2013


This patch removes a compiler warning in collie_exec_req(). This
warning is produced in the commit 5940548f4, and fixed in
70a4662caa. The latter commit cannot be backported to stable-0.6
because it is a part of the big sockfd moving. This patch manually
removes the warning.

Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
---
 collie/common.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/collie/common.c b/collie/common.c
index c305b90..0a22d95 100644
--- a/collie/common.c
+++ b/collie/common.c
@@ -171,7 +171,6 @@ out:
 int collie_exec_req(const char *host, int port, struct sd_req *hdr, void *data)
 {
 	int fd, ret;
-	struct sd_rsp *rsp = (struct sd_rsp *)hdr;
 
 	fd = connect_to(host, port);
 	if (fd < 0) {
-- 
1.7.10.4




More information about the sheepdog mailing list