From patchwork Sun Sep 14 19:40:05 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grant Erickson X-Patchwork-Id: 275 Return-Path: X-Original-To: patchwork@ozlabs.org Delivered-To: patchwork@ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id E0242DDFE4 for ; Mon, 15 Sep 2008 05:40:38 +1000 (EST) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.68 #1 (Red Hat Linux)) id 1KexS8-0000KV-1H; Sun, 14 Sep 2008 19:40:12 +0000 Received: from relay02.pair.com ([209.68.5.16]) by bombadil.infradead.org with smtp (Exim 4.68 #1 (Red Hat Linux)) id 1KexS3-0008Ow-Fr for linux-mtd@lists.infradead.org; Sun, 14 Sep 2008 19:40:08 +0000 Received: (qmail 1951 invoked by uid 0); 14 Sep 2008 19:40:06 -0000 Received: from unknown (HELO localhost.localdomain) (unknown) by unknown with SMTP; 14 Sep 2008 19:40:06 -0000 X-pair-Authenticated: 66.134.71.115 From: Grant Erickson To: linux-mtd@lists.infradead.org Subject: [PATCH] [MTD-UTILS] nandwrite: Eliminate Global Declaration Ambiguity Date: Sun, 14 Sep 2008 12:40:05 -0700 Message-Id: <1221421205-17136-1-git-send-email-gerickson@nuovations.com> X-Mailer: git-send-email 1.6.0.1 Organization: Nuovation System Designs, LLC X-Spam-Score: -1.0 (-) X-Spam-Report: SpamAssassin version 3.2.5 on bombadil.infradead.org summary: Content analysis details: (-1.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.68.5.16 listed in list.dnswl.org] X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.9 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+patchwork=ozlabs.org@lists.infradead.org Eliminate ambiguity as to whether the static global 'img' is a character pointer or a constant character pointer. Signed-off-by: Grant Erickson 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;