mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 14:33:18 +02:00
Add 'const' keyword to chip write and other function prototypes
Corresponding to flashrom svn r1789. Inspired by and mostly based on a patch Signed-off-by: Mark Marshall <mark.marshall@omicron.at> Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
This commit is contained in:

committed by
Stefan Tauner

parent
20da4aa82c
commit
f20b7beff0
4
layout.c
4
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++) {
|
||||
|
Reference in New Issue
Block a user