Skip to contentSkip to conversation

nandwrite: Eliminate Global Declaration Ambiguity

PATCH New Grant Erickson 1 participant 1 message Sep 14, 2008 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nandwrite: Eliminate Global Declaration Ambiguity

Eliminate ambiguity as to whether the static global 'img' is a character pointer or a constant character pointer.

---

Enrico Scholz <[email protected]> raised a valid point
<http://lists.infradead.org/pipermail/linux-mtd/2008-September/022968.html>
that the declaration of mtd_device and img globals are somewhat unclear with respect to the type for the typical reader.

 nandwrite.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
nandwrite.c +2 -1
index fc23e85..af73aa8 100644
@@ -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;
Signature · 1 line
1.6.0.1