summaryrefslogtreecommitdiff
path: root/util/cbfstool/cbfstool.h
diff options
context:
space:
mode:
authorMyles Watson <mylesgw@gmail.com>2009-05-08 19:39:15 +0000
committerMyles Watson <mylesgw@gmail.com>2009-05-08 19:39:15 +0000
commit475aeda9d6d62d0249276bff657adc67d206ff31 (patch)
tree6b3d9371ce61197417ed308faca8cc36691ac58e /util/cbfstool/cbfstool.h
parent83b8f0c48550bb1b2cb1a6610b1f0010bf8533a4 (diff)
downloadcoreboot-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/cbfstool.h')
-rw-r--r--util/cbfstool/cbfstool.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/cbfstool/cbfstool.h b/util/cbfstool/cbfstool.h
index 51abd29b58..dc52bfb16b 100644
--- a/util/cbfstool/cbfstool.h
+++ b/util/cbfstool/cbfstool.h
@@ -67,15 +67,15 @@ int add_bootblock(struct rom *rom, const char *filename);
/* fs.c */
-struct cbfs_file *rom_find(struct rom *rom, unsigned int offset);
+struct cbfs_file *rom_find(struct rom *rom, int offset);
struct cbfs_file *rom_find_first(struct rom *);
struct cbfs_file *rom_find_next(struct rom *, struct cbfs_file *);
int rom_add(struct rom *rom, const char *name, void *, int size, int type);
int rom_set_header(struct rom *rom, struct cbfs_file *c,
const char*name, int size, int type);
-int rom_extract(struct rom *rom, const char *name, void **buf, unsigned long *size);
+int rom_extract(struct rom *rom, const char *name, void **buf, int *size);
int rom_remove(struct rom *rom, const char *name);
-unsigned int rom_used_space(struct rom *rom);
+int rom_used_space(struct rom *rom);
int rom_exists(struct rom *rom);
#endif