[Sheepdog] [PATCH] collie: fix wrong syntax
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Wed May 12 10:05:29 CEST 2010
`switch' should be 'if` here.
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
collie/collie.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/collie/collie.c b/collie/collie.c
index 18e49a7..3251614 100644
--- a/collie/collie.c
+++ b/collie/collie.c
@@ -130,7 +130,7 @@ static int update_node_list(int max_nodes, int epoch)
goto out;
}
- switch (rsp->result != SD_RES_SUCCESS) {
+ if (rsp->result != SD_RES_SUCCESS) {
fprintf(stderr, "%s\n", sd_strerror(rsp->result));
ret = -1;
goto out;
--
1.5.6.5
More information about the sheepdog
mailing list