From 2ffc56b3379004747f02b28b07c635f83a21e6f5 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Fri, 19 Aug 2022 02:48:15 +0200 Subject: tree: Retype variable `programmer_may_write` with bool Use the bool type instead of an integer for the variable `programmer_may_write`, since this represents its purpose much better. Signed-off-by: Felix Singer Change-Id: I69958527ae018a92f1c42734a7990d0c532dee0c Reviewed-on: https://review.coreboot.org/c/flashrom/+/66885 Reviewed-by: Anastasia Klimchuk Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- include/programmer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/programmer.h b/include/programmer.h index 776ac211..abb7cfd6 100644 --- a/include/programmer.h +++ b/include/programmer.h @@ -286,7 +286,7 @@ struct decode_sizes { }; // FIXME: These need to be local, not global extern struct decode_sizes max_rom_decode; -extern int programmer_may_write; +extern bool programmer_may_write; extern unsigned long flashbase; unsigned int count_max_decode_exceedings(const struct flashctx *flash); char *extract_programmer_param_str(const struct programmer_cfg *cfg, const char *param_name); -- cgit v1.2.3