diff options
author | Edward O'Callaghan <quasisec@google.com> | 2021-07-14 15:06:04 +1000 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2021-07-16 02:10:07 +0000 |
commit | 4ebe65c73330b08fe6b8454af7810e022f94e26c (patch) | |
tree | b0e248218fbadc88a50fa6638d7e6ccf9c50ac7d /flashrom.c | |
parent | 16661d82e3c17e224a21c109572b0834ec63a17c (diff) | |
download | flashrom-4ebe65c73330b08fe6b8454af7810e022f94e26c.tar.gz flashrom-4ebe65c73330b08fe6b8454af7810e022f94e26c.tar.bz2 flashrom-4ebe65c73330b08fe6b8454af7810e022f94e26c.zip |
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>
Diffstat (limited to 'flashrom.c')
-rw-r--r-- | flashrom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/flashrom.c b/flashrom.c index 6cc899f87..1f94f33d2 100644 --- a/flashrom.c +++ b/flashrom.c @@ -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 * 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; |