projects
/
coreboot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add -Werror to help us keep the code clean.
[coreboot.git]
/
util
/
cbfstool
/
extract.c
diff --git
a/util/cbfstool/extract.c
b/util/cbfstool/extract.c
index d6944763b77f600068e9be7b2e326ce4df9abfbd..5a30553d2979de631691e8c03b6cc40382e4fa4f 100644
(file)
--- 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 %
l
d bytes!\n", size);
+ ERROR("Couldn't write %d bytes!\n", size);
ret = -1;
}