diff options
author | Stefan Reinauer <stepan@openbios.org> | 2006-01-04 16:42:57 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2006-01-04 16:42:57 +0000 |
commit | 27897c7adc1d1577b137ce62cd7bf05be9a07d54 (patch) | |
tree | e4d164011a68eb6ce6fb63cf0ea31717da5c6260 /util | |
parent | 260f1cc55d4ba6cc060d6969044ce9c91a5bac1b (diff) |
pass on return values
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2151 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util')
-rw-r--r-- | util/flashrom/flash_rom.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/util/flashrom/flash_rom.c b/util/flashrom/flash_rom.c index fb7d03002a..db3c2c9095 100644 --- a/util/flashrom/flash_rom.c +++ b/util/flashrom/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; } |