summaryrefslogtreecommitdiffstats
path: root/flash.h
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2012-12-30 01:23:17 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2012-12-30 01:23:17 +0000
commit734ce10642bea756680fa8162f5776f33ead49d1 (patch)
treea20f41f2259da0fb66c67af221ff3e9ab00015e3 /flash.h
parent53c6db7587921003bbc8f798efe8a75286845e26 (diff)
downloadflashrom-734ce10642bea756680fa8162f5776f33ead49d1.zip
flashrom-734ce10642bea756680fa8162f5776f33ead49d1.tar.gz
Constify parameters and globals
This makes some stuff const (partially to get a more convenient libflashrom interface). Corresponding to flashrom svn r1639. Signed-off-by: Nico Huber <nico.huber@secunet.com> Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'flash.h')
-rw-r--r--flash.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/flash.h b/flash.h
index 76c6942..3149b4f 100644
--- a/flash.h
+++ b/flash.h
@@ -222,7 +222,7 @@ void print_supported_wiki(void);
extern int verbose_screen;
extern int verbose_logfile;
extern const char flashrom_version[];
-extern char *chip_to_probe;
+extern const char *chip_to_probe;
void map_flash_registers(struct flashctx *flash);
int read_memmapped(struct flashctx *flash, uint8_t *buf, unsigned int start, unsigned int len);
int erase_flash(struct flashctx *flash);
@@ -231,7 +231,7 @@ int read_flash_to_file(struct flashctx *flash, const char *filename);
int min(int a, int b);
int max(int a, int b);
void tolower_string(char *str);
-char *extract_param(char **haystack, const char *needle, const char *delim);
+char *extract_param(const char *const *haystack, const char *needle, const char *delim);
int verify_range(struct flashctx *flash, uint8_t *cmpbuf, unsigned int start, unsigned int len);
int need_erase(uint8_t *have, uint8_t *want, unsigned int len, enum write_granularity gran);
char *strcat_realloc(char *dest, const char *src);
OpenPOWER on IntegriCloud