From patchwork Sun Oct 14 20:31:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 191391 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id 9FDE92C008A for ; Mon, 15 Oct 2012 07:32:23 +1100 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1TNUrG-000683-A0; Sun, 14 Oct 2012 20:32:22 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1TNUrE-00067Q-TH for fwts-devel@lists.ubuntu.com; Sun, 14 Oct 2012 20:32:20 +0000 Received: from cpc3-craw6-2-0-cust180.croy.cable.virginmedia.com ([77.100.248.181] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1TNUrE-0003qq-R3 for fwts-devel@lists.ubuntu.com; Sun, 14 Oct 2012 20:32:20 +0000 From: Colin King To: fwts-devel@lists.ubuntu.com Subject: [PATCH 03/26] lib: fwts_dump: fix loop variable type to match table length type Date: Sun, 14 Oct 2012 21:31:55 +0100 Message-Id: <1350246738-31699-4-git-send-email-colin.king@canonical.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1350246738-31699-1-git-send-email-colin.king@canonical.com> References: <1350246738-31699-1-git-send-email-colin.king@canonical.com> X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: fwts-devel-bounces@lists.ubuntu.com Errors-To: fwts-devel-bounces@lists.ubuntu.com From: Colin Ian King Ensure the loop variable is of the same type as that of the ACPI table length. Signed-off-by: Colin Ian King Acked-by: Alex Hung Acked-by: Keng-Yu Lin --- src/lib/src/fwts_dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/src/fwts_dump.c b/src/lib/src/fwts_dump.c index f14e8f9..fb69376 100644 --- a/src/lib/src/fwts_dump.c +++ b/src/lib/src/fwts_dump.c @@ -145,7 +145,7 @@ static int dump_lspci(fwts_framework *fw, const char *path, const char *filename static int dump_acpi_table(fwts_acpi_table_info *table, FILE *fp) { char buffer[128]; - int n; + size_t n; fprintf(fp, "%s @ 0x%x\n", table->name, (uint32_t)table->addr);