From patchwork Tue Oct 16 19:20:47 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: 191863 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 EB9952C00A6 for ; Wed, 17 Oct 2012 06:20:58 +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 1TOChF-0002YV-Pe; Tue, 16 Oct 2012 19:20:57 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1TOChC-0002Xi-DI for fwts-devel@lists.ubuntu.com; Tue, 16 Oct 2012 19:20:54 +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 1TOChC-0005lh-AH for fwts-devel@lists.ubuntu.com; Tue, 16 Oct 2012 19:20:54 +0000 From: Colin King To: fwts-devel@lists.ubuntu.com Subject: [PATCH 10/11] lib: fwts_memorymap: constify function arguments where appropriate Date: Tue, 16 Oct 2012 20:20:47 +0100 Message-Id: <1350415248-16965-11-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_memorymap.h | 2 +- src/lib/src/fwts_memorymap.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/include/fwts_memorymap.h b/src/lib/include/fwts_memorymap.h index b125ec0..ae94f85 100644 --- a/src/lib/include/fwts_memorymap.h +++ b/src/lib/include/fwts_memorymap.h @@ -42,7 +42,7 @@ int fwts_memory_map_is_reserved(fwts_list *memory_map_list, const uint64_ fwts_list *fwts_memory_map_table_load(fwts_framework *fw); void fwts_memory_map_table_free(fwts_list *memory_map_list); void fwts_memory_map_table_dump(fwts_framework *fw, fwts_list *memory_map_list); -const char *fwts_memory_map_name(int type); +const char *fwts_memory_map_name(const int type); fwts_memory_map_entry *fwts_memory_map_info(fwts_list *memory_map_list, const uint64_t memory); #endif diff --git a/src/lib/src/fwts_memorymap.c b/src/lib/src/fwts_memorymap.c index 46fe455..fe5dd7b 100644 --- a/src/lib/src/fwts_memorymap.c +++ b/src/lib/src/fwts_memorymap.c @@ -77,7 +77,7 @@ static int fwts_memory_map_str_to_type(const char *str) * fwts_memory_map_type_to_str() * convert E280 type values to strings */ -static char *fwts_memory_map_type_to_str(int type) +static char *fwts_memory_map_type_to_str(const int type) { switch (type) { case FWTS_MEMORY_MAP_RESERVED: @@ -320,7 +320,7 @@ void fwts_memory_map_table_free(fwts_list *memory_map_list) fwts_list_free(memory_map_list, free); } -const char *fwts_memory_map_name(int type) +const char *fwts_memory_map_name(const int type) { switch (type) { case FWTS_FIRMWARE_BIOS: