]> www.infradead.org Git - mtd-utils.git/commitdiff
Make "c" global
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 22 Oct 2008 12:04:52 +0000 (15:04 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 22 Oct 2008 12:32:15 +0000 (15:32 +0300)
We need to have access to "c" from various files.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
mkfs.ubifs/mkfs.ubifs.c
mkfs.ubifs/mkfs.ubifs.h

index 18ede4904b3b47002d6b9d3c7536e7389797f9c6..46f80584ae129002e2f6731023ca8b043eb5eab8 100644 (file)
@@ -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;
index 7f2bdc2821c3fadc1f537a1b4ce14c9b8bd15fde..705a9f9ab99c3aa6924af6cacffd033a8731f808 100644 (file)
@@ -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);