From 4f9a9b8ebae8425eda3a71ccb782789cd3b8f6b7 Mon Sep 17 00:00:00 2001 From: Øyvind Harboe Date: Wed, 29 Dec 2010 22:07:21 +0100 Subject: warnings: use more 'const' for char * MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Øyvind Harboe --- src/flash/nor/tms470.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/flash/nor/tms470.c') diff --git a/src/flash/nor/tms470.c b/src/flash/nor/tms470.c index 4ca6cd8d..dd9ff5b4 100644 --- a/src/flash/nor/tms470.c +++ b/src/flash/nor/tms470.c @@ -38,7 +38,7 @@ struct tms470_flash_bank uint32_t technology_family; uint32_t rom_flash; uint32_t part_number; - char * part_name; + const char * part_name; }; @@ -129,7 +129,7 @@ static int tms470_read_part_info(struct flash_bank *bank) uint32_t technology_family; uint32_t rom_flash; uint32_t part_number; - char *part_name; + const char *part_name; /* we shall not rely on the caller in this test, this function allocates memory, thus and executing the code more than once may cause memory leak */ -- cgit v1.2.3