From patchwork Tue Oct 16 19:20:38 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: 191855 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 E72272C00A8 for ; Wed, 17 Oct 2012 06:20:53 +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 1TOCh9-0002WK-RE; Tue, 16 Oct 2012 19:20:51 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1TOCh7-0002VA-St for fwts-devel@lists.ubuntu.com; Tue, 16 Oct 2012 19:20:49 +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 1TOCh7-0005l8-Ns for fwts-devel@lists.ubuntu.com; Tue, 16 Oct 2012 19:20:49 +0000 From: Colin King To: fwts-devel@lists.ubuntu.com Subject: [PATCH 01/11] lib: fwts_ac_adapter: constify state Date: Tue, 16 Oct 2012 20:20:38 +0100 Message-Id: <1350415248-16965-2-git-send-email-colin.king@canonical.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1350415248-16965-1-git-send-email-colin.king@canonical.com> References: <1350415248-16965-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 Signed-off-by: Colin Ian King Acked-by: Keng-Yu Lin Acked-by: Ivan Hu --- src/lib/include/fwts_ac_adapter.h | 2 +- src/lib/src/fwts_ac_adapter.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/include/fwts_ac_adapter.h b/src/lib/include/fwts_ac_adapter.h index 905984f..9f387db 100644 --- a/src/lib/include/fwts_ac_adapter.h +++ b/src/lib/include/fwts_ac_adapter.h @@ -27,6 +27,6 @@ #define FWTS_AC_ADAPTER_ONLINE (0x1) #define FWTS_AC_ADAPTER_OFFLINE (0x2) -int fwts_ac_adapter_get_state(int state, int *matching, int *not_matching); +int fwts_ac_adapter_get_state(const int state, int *matching, int *not_matching); #endif diff --git a/src/lib/src/fwts_ac_adapter.c b/src/lib/src/fwts_ac_adapter.c index be07be8..9db1748 100644 --- a/src/lib/src/fwts_ac_adapter.c +++ b/src/lib/src/fwts_ac_adapter.c @@ -70,7 +70,7 @@ static fwts_ac_interface_info fwts_ac_interfaces[] = { * not_matching is incremented for each AC adapter instance that does * not match. */ -int fwts_ac_adapter_get_state(int state, int *matching, int *not_matching) +int fwts_ac_adapter_get_state(const int state, int *matching, int *not_matching) { DIR *ac_power_dir; struct dirent *entry;