Edward O'Callaghan has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/56295 )
Change subject: flashrom.c: Make extract_param() static local ......................................................................
flashrom.c: Make extract_param() static local
The function is only ever used within flashrom.c.
BUG=none BRANCH=none TEST=builds
Change-Id: I81f1cdb9df98c151201390edeb69c74defe7881f Signed-off-by: Edward O'Callaghan quasisec@google.com --- M flash.h M flashrom.c 2 files changed, 1 insertion(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/95/56295/1
diff --git a/flash.h b/flash.h index c6a53b1..3baa076 100644 --- a/flash.h +++ b/flash.h @@ -344,7 +344,6 @@ int erase_flash(struct flashctx *flash); int probe_flash(struct registered_master *mst, int startchip, struct flashctx *fill_flash, int force); int read_flash_to_file(struct flashctx *flash, const char *filename); -char *extract_param(const char *const *haystack, const char *needle, const char *delim); int verify_range(struct flashctx *flash, const uint8_t *cmpbuf, unsigned int start, unsigned int len); int need_erase(const uint8_t *have, const uint8_t *want, unsigned int len, enum write_granularity gran, const uint8_t erased_value); void print_version(void); diff --git a/flashrom.c b/flashrom.c index 6cc899f..1f94f33 100644 --- a/flashrom.c +++ b/flashrom.c @@ -272,7 +272,7 @@ * needle and remove everything from the first occurrence of needle to the next * delimiter from haystack. */ -char *extract_param(const char *const *haystack, const char *needle, const char *delim) +static char *extract_param(const char *const *haystack, const char *needle, const char *delim) { char *param_pos, *opt_pos, *rest; char *opt = NULL;