nandwrite: Eliminate Global Declaration Ambiguity
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.
Signed-off-by Grant Erickson <[email protected]>
---
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
@@ -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