[stgt] [PATCH] tgtd: let event_need_refresh be a static variable

Hitoshi Mitake mitake.hitoshi at lab.ntt.co.jp
Wed Feb 26 06:35:15 CET 2014


The variable don't have to be visible from other source files.

Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
---
 usr/tgtd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr/tgtd.c b/usr/tgtd.c
index 04b31dc..9975e03 100644
--- a/usr/tgtd.c
+++ b/usr/tgtd.c
@@ -212,7 +212,7 @@ static struct event_data *tgt_event_lookup(int fd)
 	return NULL;
 }
 
-int event_need_refresh;
+static int event_need_refresh;
 
 void tgt_event_del(int fd)
 {
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list