nandwrite: Eliminate Global Declaration Ambiguity

Submitted by Grant Erickson on Sept. 14, 2008, 7:40 p.m.

Details

Message ID 1221421205-17136-1-git-send-email-gerickson@nuovations.com
State Rejected
Headers show

Commit Message

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 hide | download patch | download mbox

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;