From 4ebe65c73330b08fe6b8454af7810e022f94e26c Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Wed, 14 Jul 2021 15:06:04 +1000 Subject: 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 Reviewed-on: https://review.coreboot.org/c/flashrom/+/56295 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber Reviewed-by: Anastasia Klimchuk --- flashrom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'flashrom.c') diff --git a/flashrom.c b/flashrom.c index 6cc899f8..1f94f33d 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; -- cgit v1.2.3