[sheepdog] [PATCH 07/14] make file local variables static
MORITA Kazutaka
morita.kazutaka at gmail.com
Sat Aug 10 17:58:48 CEST 2013
From: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
collie/farm/farm.c | 2 +-
lib/logger.c | 2 +-
sheep/recovery.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/collie/farm/farm.c b/collie/farm/farm.c
index 90cb675..ff8be39 100644
--- a/collie/farm/farm.c
+++ b/collie/farm/farm.c
@@ -37,7 +37,7 @@ struct snapshot_work {
struct strbuf *trunk_buf;
struct work work;
};
-struct work_queue *wq;
+static struct work_queue *wq;
static uatomic_bool work_error;
static struct vdi_entry *find_vdi(const char *name)
diff --git a/lib/logger.c b/lib/logger.c
index f1fefff..b7dbd2f 100644
--- a/lib/logger.c
+++ b/lib/logger.c
@@ -49,7 +49,7 @@ static const char * const log_color[] = {
[SDOG_DEBUG] = TEXT_GREEN,
};
-struct logger_user_info *logger_user_info;
+static struct logger_user_info *logger_user_info;
static void dolog(int prio, const char *func, int line, const char *fmt,
va_list ap) __printf(4, 0);
diff --git a/sheep/recovery.c b/sheep/recovery.c
index 5aabd30..3487dbe 100644
--- a/sheep/recovery.c
+++ b/sheep/recovery.c
@@ -71,7 +71,7 @@ struct recovery_info {
struct vnode_info *cur_vinfo;
};
-struct recovery_info *next_rinfo;
+static struct recovery_info *next_rinfo;
static main_thread(struct recovery_info *) current_rinfo;
static void queue_recovery_work(struct recovery_info *rinfo);
--
1.7.9.5
More information about the sheepdog
mailing list