summaryrefslogtreecommitdiffstats
path: root/cli_classic.c
diff options
context:
space:
mode:
authorThomas Heijligen <thomas.heijligen@secunet.de>2021-05-19 14:12:18 +0200
committerNico Huber <nico.h@gmx.de>2021-06-10 12:49:28 +0000
commite14b2ec65ca6f79e02da8e1cedff5441423e9b6c (patch)
tree93277a930c180517bf766a5383cb4e33c9e7b1e0 /cli_classic.c
parent4f5169df5ff2b63a40d654ab133b8a3108b6a599 (diff)
downloadflashrom-e14b2ec65ca6f79e02da8e1cedff5441423e9b6c.tar.gz
flashrom-e14b2ec65ca6f79e02da8e1cedff5441423e9b6c.tar.bz2
flashrom-e14b2ec65ca6f79e02da8e1cedff5441423e9b6c.zip
programmer_table: replace PROGRAMMER_INVALID with programmer_table_size
Change-Id: Icaaeefe001de604df9d7fdd06f05a5ed39fdbd84 Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.de> Reviewed-on: https://review.coreboot.org/c/flashrom/+/55117 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'cli_classic.c')
-rw-r--r--cli_classic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli_classic.c b/cli_classic.c
index bc2d40de8..f3ae123b2 100644
--- a/cli_classic.c
+++ b/cli_classic.c
@@ -406,7 +406,7 @@ int main(int argc, char *argv[])
"with \",\". Please see the man page "
"for details.\n");
}
- for (prog = 0; prog < PROGRAMMER_INVALID; prog++) {
+ for (prog = 0; prog < programmer_table_size; prog++) {
name = programmer_table[prog]->name;
namelen = strlen(name);
if (strncmp(optarg, name, namelen) == 0) {