Add -Werror to help us keep the code clean.
[coreboot.git] / util / cbfstool / extract.c
index d6944763b77f600068e9be7b2e326ce4df9abfbd..5a30553d2979de631691e8c03b6cc40382e4fa4f 100644 (file)
@@ -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;
        }