From e5775748c3035131b8291eaf69ca9c9e4ccfb93e Mon Sep 17 00:00:00 2001 From: stefanct Date: Fri, 9 May 2014 21:16:21 +0000 Subject: Add 'const' keyword to chip write and other function prototypes. Inspired by and mostly based on a patch Signed-off-by: Mark Marshall Signed-off-by: Stefan Tauner Acked-by: Stefan Tauner git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1789 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- layout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'layout.c') diff --git a/layout.c b/layout.c index 0e49f19..a12eb28 100644 --- a/layout.c +++ b/layout.c @@ -45,7 +45,7 @@ static char *include_args[MAX_ROMLAYOUT]; static int num_include_args = 0; /* the number of valid include_args. */ #ifndef __LIBPAYLOAD__ -int read_romlayout(char *name) +int read_romlayout(const char *name) { FILE *romlayout; char tempstr[256]; @@ -102,7 +102,7 @@ int read_romlayout(char *name) #endif /* returns the index of the entry (or a negative value if it is not found) */ -int find_include_arg(const char *const name) +static int find_include_arg(const char *const name) { unsigned int i; for (i = 0; i < num_include_args; i++) { -- cgit v1.2.1