Patchwork nandwrite: Eliminate Global Declaration Ambiguity

login
register
mail settings
Submitter Grant Erickson
Date Sept. 14, 2008, 7:40 p.m.
Message ID <1221421205-17136-1-git-send-email-gerickson@nuovations.com>
Download mbox | patch
Permalink /patch/275/
State Rejected
Headers show

Comments

Grant Erickson - Sept. 14, 2008, 7:40 p.m.
Eliminate ambiguity as to whether the static global 'img' is a
character pointer or a constant character pointer.

Signed-off-by: Grant Erickson <gerickson@nuovations.com>

Patch

diff --git a/nandwrite.c b/nandwrite.c
index fc23e85..af73aa8 100644
--- a/nandwrite.c
+++ b/nandwrite.c
@@ -113,7 +113,8 @@  static void display_version (void)
 }
 
 static const char	*standard_input = "-";
-static const char	*mtd_device, *img;
+static const char	*mtd_device;
+static const char	*img;
 static int		mtdoffset = 0;
 static bool		quiet = false;
 static bool		writeoob = false;