aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-10-22 15:04:52 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-10-22 15:32:15 +0300
commit38b8f4dc72e3aff117f66042a5d4ce0d71ef8b9c (patch)
tree81718f5ea33cffb0a8dd81f1152c8af7a703d1b4
parent06ff08f391e0297c4fcde63b801e6992d2238ae2 (diff)
Make "c" global
We need to have access to "c" from various files. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
-rw-r--r--mkfs.ubifs/mkfs.ubifs.c3
-rw-r--r--mkfs.ubifs/mkfs.ubifs.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/mkfs.ubifs/mkfs.ubifs.c b/mkfs.ubifs/mkfs.ubifs.c
index 18ede49..46f8058 100644
--- a/mkfs.ubifs/mkfs.ubifs.c
+++ b/mkfs.ubifs/mkfs.ubifs.c
@@ -93,7 +93,8 @@ struct inum_mapping {
* Because we copy functions from the kernel, we use a subset of the UBIFS
* file-system description object struct ubifs_info.
*/
-static struct ubifs_info info_, *c = &info_;
+static struct ubifs_info info_;
+struct ubifs_info *c = &info_;
/* Debug levels are: 0 (none), 1 (statistics), 2 (files) ,3 (more details) */
int debug_level;
diff --git a/mkfs.ubifs/mkfs.ubifs.h b/mkfs.ubifs/mkfs.ubifs.h
index 7f2bdc2..705a9f9 100644
--- a/mkfs.ubifs/mkfs.ubifs.h
+++ b/mkfs.ubifs/mkfs.ubifs.h
@@ -124,6 +124,8 @@ struct name_htbl_element {
dev_t dev;
};
+extern struct ubifs_info *c;
+
struct hashtable_itr;
int write_leb(int lnum, int len, void *buf);