diff options
author | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2006-01-04 16:42:57 +0000 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2006-01-04 16:42:57 +0000 |
commit | 143da0baaef41811592a3b50cd3e7ef2989d6473 (patch) | |
tree | 826471f7229f37c4c701719c21709181fe04d429 | |
parent | 3a431602df23999249e2240af0895d2c90f77050 (diff) | |
download | flashrom-143da0baaef41811592a3b50cd3e7ef2989d6473.tar.gz flashrom-143da0baaef41811592a3b50cd3e7ef2989d6473.tar.bz2 flashrom-143da0baaef41811592a3b50cd3e7ef2989d6473.zip |
Pass on return values
Corresponding to flashrom svn r39 and coreboot v2 svn r2151.
-rw-r--r-- | flash_rom.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/flash_rom.c b/flash_rom.c index fb7d0300..db3c2c90 100644 --- a/flash_rom.c +++ b/flash_rom.c @@ -147,6 +147,7 @@ int main(int argc, char *argv[]) write_it = 0, erase_it = 0, verify_it = 0; + int ret = 0; static struct option long_options[]= { { "read", 0, 0, 'r' }, @@ -336,10 +337,10 @@ int main(int argc, char *argv[]) // //////////////////////////////////////////////////////////// if (write_it) - flash->write(flash, buf); + ret |= flash->write(flash, buf); if (verify_it) - verify_flash(flash, buf); + ret |= verify_flash(flash, buf); - return 0; + return ret; } |