diff options
author | Myles Watson <mylesgw@gmail.com> | 2009-05-08 19:39:15 +0000 |
---|---|---|
committer | Myles Watson <mylesgw@gmail.com> | 2009-05-08 19:39:15 +0000 |
commit | 475aeda9d6d62d0249276bff657adc67d206ff31 (patch) | |
tree | 6b3d9371ce61197417ed308faca8cc36691ac58e /util/cbfstool/extract.c | |
parent | 83b8f0c48550bb1b2cb1a6610b1f0010bf8533a4 (diff) | |
download | coreboot-475aeda9d6d62d0249276bff657adc67d206ff31.tar.xz |
Add -Werror to help us keep the code clean.
Change sizes from unsigned int to int.
Clean up some usage and parameter checking.
Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4262 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/cbfstool/extract.c')
-rw-r--r-- | util/cbfstool/extract.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/cbfstool/extract.c b/util/cbfstool/extract.c index d6944763b7..5a30553d29 100644 --- a/util/cbfstool/extract.c +++ b/util/cbfstool/extract.c @@ -28,7 +28,7 @@ static int extract_blob(struct rom *rom, const char *filename, const char *name) { void *buf; int fd, ret; - unsigned long size; + int size; ret = rom_extract(rom, name, &buf, &size); @@ -43,7 +43,7 @@ static int extract_blob(struct rom *rom, const char *filename, const char *name) } if (write(fd, buf, size) != size) { - ERROR("Couldn't write %ld bytes!\n", size); + ERROR("Couldn't write %d bytes!\n", size); ret = -1; } |