diff options
author | Felix Singer <felixsinger@posteo.net> | 2022-05-22 02:04:18 +0200 |
---|---|---|
committer | Anastasia Klimchuk <aklm@chromium.org> | 2022-08-14 22:28:26 +0000 |
commit | f44a70ff8cdf349dd27070b33a956bbed3446285 (patch) | |
tree | 1684c60b1ec83d76043d255062286a9de945cb54 /dediprog.c | |
parent | 9944a8a8a767149be7541aad3dca1742415933fa (diff) | |
download | flashrom-f44a70ff8cdf349dd27070b33a956bbed3446285.tar.gz flashrom-f44a70ff8cdf349dd27070b33a956bbed3446285.tar.bz2 flashrom-f44a70ff8cdf349dd27070b33a956bbed3446285.zip |
cli_classic.c: Make use of bool type in the main function
Use the bool type instead of integer in the main function where
possible, since this represents the purpose of some variables much
better. Also, then we don't have to use the "!!" operator to turn any
number into one or zero, which is used as an equivalent to true and
false.
Also, since we have booleans and integers now, slightly change the
ordering of the variable declarations, so that the integers come before
the booleans.
Tested some parameters using the following commands:
flashrom -L
flashrom -p dummy
flashrom -p dummy:emulate=SST25VF040.REMS,image=foo2 -c "SST25LF040A" --progress -v foo1
flashrom -p dummy:emulate=SST25VF040.REMS,image=foo2 -c "SST25LF040A" --progress -w foo1
flashrom -p dummy:emulate=SST25VF040.REMS,image=foo2 -c "SST25LF040A" --progress -r foo1
flashrom -p dummy:emulate=SST25VF040.REMS,image=foo2 -c "SST25LF040A" --progress -E
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Change-Id: I06572da040e12ac88f8e5fc39f60a9e212b86bd7
Reviewed-on: https://review.coreboot.org/c/flashrom/+/64564
Reviewed-by: Evan Benn <evanbenn@google.com>
Reviewed-by: Thomas Heijligen <src@posteo.de>
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Alexander Goncharov <chat@joursoir.net>
Diffstat (limited to 'dediprog.c')
0 files changed, 0 insertions, 0 deletions