From patchwork Tue Apr 10 14:34:02 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: 151600 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 74789B700F for ; Wed, 11 Apr 2012 00:34:08 +1000 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1SHc91-0004v0-2e for incoming@patchwork.ozlabs.org; Tue, 10 Apr 2012 14:34:07 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1SHc8z-0004uu-NY for fwts-devel@lists.ubuntu.com; Tue, 10 Apr 2012 14:34:05 +0000 Received: from cpc19-craw6-2-0-cust5.croy.cable.virginmedia.com ([77.102.228.6] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SHc8w-0004hW-LB for fwts-devel@lists.ubuntu.com; Tue, 10 Apr 2012 14:34:02 +0000 From: Colin King To: fwts-devel@lists.ubuntu.com Subject: [PATCH] acpica: fwts_acpica: use size_t instead of int Date: Tue, 10 Apr 2012 15:34:02 +0100 Message-Id: <1334068442-2576-1-git-send-email-colin.king@canonical.com> X-Mailer: git-send-email 1.7.9.1 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 Signed-off-by: Colin Ian King Acked-by: Alex Hung Acked-by: Keng-Yu Lin --- src/acpica/fwts_acpica.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/acpica/fwts_acpica.c b/src/acpica/fwts_acpica.c index 609dc8f..1e2db3c 100644 --- a/src/acpica/fwts_acpica.c +++ b/src/acpica/fwts_acpica.c @@ -266,10 +266,10 @@ void fwts_acpica_debug_command(fwts_framework *fw, fwts_acpica_log_callback func void fwts_acpica_vprintf(const char *fmt, va_list args) { static char *buffer; - static int buffer_len; + static size_t buffer_len; char tmp[4096]; - int tmp_len; + size_t tmp_len; vsnprintf(tmp, sizeof(tmp), fmt, args); tmp_len = strlen(tmp);