summaryrefslogtreecommitdiffstats
path: root/libflashrom.c
diff options
context:
space:
mode:
authorThomas Heijligen <thomas.heijligen@secunet.de>2021-06-01 14:25:01 +0200
committerNico Huber <nico.h@gmx.de>2021-06-10 12:52:00 +0000
commit4bb086423c7b187c0fdfcedcff312993bb339d0b (patch)
tree735cfa077b57a4ab7ad084eb795516b13f78839a /libflashrom.c
parentdd8b8d5289b440bbd998fa342d84e6b2946e82f0 (diff)
downloadflashrom-4bb086423c7b187c0fdfcedcff312993bb339d0b.tar.gz
flashrom-4bb086423c7b187c0fdfcedcff312993bb339d0b.tar.bz2
flashrom-4bb086423c7b187c0fdfcedcff312993bb339d0b.zip
flashrom.c libflashrom.c: replace enum programmer with size_t
Using size_t since programmer_table_size uses ARRAY_SIZE which returns size_t. Change-Id: Id2ad9630fbc41e98d182768b553788e069fa5095 Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.de> Reviewed-on: https://review.coreboot.org/c/flashrom/+/55120 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'libflashrom.c')
-rw-r--r--libflashrom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libflashrom.c b/libflashrom.c
index f3df1c7ee..1a8b05173 100644
--- a/libflashrom.c
+++ b/libflashrom.c
@@ -119,7 +119,7 @@ const char *flashrom_version_info(void)
*/
const char **flashrom_supported_programmers(void)
{
- enum programmer p = 0;
+ size_t p = 0;
const char **supported_programmers = malloc((programmer_table_size + 1) * sizeof(char*));
if (supported_programmers != NULL) {