[Sheepdog] [PATCH 10/12] shadow problem: w is shadowed by a local in a function

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Fri May 21 13:42:37 CEST 2010


Rename a function parameter w to work.

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

diff --git a/sheep/group.c b/sheep/group.c
index dbe3141..7d36d15 100644
--- a/sheep/group.c
+++ b/sheep/group.c
@@ -1258,7 +1258,7 @@ static void cpg_event_free(struct cpg_event *cevent)
 
 static struct work cpg_event_work;
 
-static void cpg_event_fn(struct work *w, int idx)
+static void cpg_event_fn(struct work *work, int idx)
 {
 	struct cpg_event *cevent = sys->cur_cevent;
 
@@ -1289,7 +1289,7 @@ static void cpg_event_fn(struct work *w, int idx)
 	}
 }
 
-static void cpg_event_done(struct work *w, int idx)
+static void cpg_event_done(struct work *work, int idx)
 {
 	struct cpg_event *cevent;
 
-- 
1.5.6.5




More information about the sheepdog mailing list