mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 22:21:16 +02:00
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> Reviewed-on: https://review.coreboot.org/c/flashrom/+/56295 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
This commit is contained in:

committed by
Edward O'Callaghan

parent
16661d82e3
commit
4ebe65c733
1
flash.h
1
flash.h
@ -344,7 +344,6 @@ int read_memmapped(struct flashctx *flash, uint8_t *buf, unsigned int start, uns
|
|||||||
int erase_flash(struct flashctx *flash);
|
int erase_flash(struct flashctx *flash);
|
||||||
int probe_flash(struct registered_master *mst, int startchip, struct flashctx *fill_flash, int force);
|
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);
|
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 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);
|
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);
|
void print_version(void);
|
||||||
|
@ -272,7 +272,7 @@ int read_memmapped(struct flashctx *flash, uint8_t *buf, unsigned int start,
|
|||||||
* needle and remove everything from the first occurrence of needle to the next
|
* needle and remove everything from the first occurrence of needle to the next
|
||||||
* delimiter from haystack.
|
* 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 *param_pos, *opt_pos, *rest;
|
||||||
char *opt = NULL;
|
char *opt = NULL;
|
||||||
|
Reference in New Issue
Block a user