summaryrefslogtreecommitdiffstats
path: root/layout.c
diff options
context:
space:
mode:
authorMark Marshall <mark.marshall@omicron.at>2014-05-09 21:16:21 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2014-05-09 21:16:21 +0000
commitf20b7beff054eb316088d590094d9efbc68dbee1 (patch)
tree6324be451385c9f9cea27381f35f300fbaa7f454 /layout.c
parent20da4aa82cc11f25a6a4a52fd2bed219e6e1d829 (diff)
downloadflashrom-f20b7beff054eb316088d590094d9efbc68dbee1.tar.gz
flashrom-f20b7beff054eb316088d590094d9efbc68dbee1.tar.bz2
flashrom-f20b7beff054eb316088d590094d9efbc68dbee1.zip
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>
Diffstat (limited to 'layout.c')
-rw-r--r--layout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/layout.c b/layout.c
index 0e49f194d..a12eb2813 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++) {