From 2850b5eb206c0b8ae4c04adeab63f9abfa5c1003 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Thu, 29 Dec 2005 14:55:09 +0000 Subject: fix buildrom compiler warnings with gcc4 git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2148 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/buildrom/buildrom.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'util') diff --git a/util/buildrom/buildrom.c b/util/buildrom/buildrom.c index cdbb45d2d4..9dde492d0f 100644 --- a/util/buildrom/buildrom.c +++ b/util/buildrom/buildrom.c @@ -32,7 +32,7 @@ void fatal(char *s) int main(int argc, char *argv[]) { - int infd, payloadfd, outfd, size, insize, readlen, writelen, i; + int infd, payloadfd, outfd, size, readlen, writelen, i; int romsize; unsigned char *cp; struct stat inbuf, payloadbuf; @@ -58,7 +58,7 @@ int main(int argc, char *argv[]) fatal("stat of infile"); if (inbuf.st_size > size) { fprintf(stderr, "linuxbios image is %d bytes; only %d allowed\n", - inbuf.st_size, size); + (int)inbuf.st_size, size); fatal("Linuxbios input file larger than allowed size!\n"); } @@ -77,7 +77,7 @@ int main(int argc, char *argv[]) /* read the input file in at the END of the array */ readlen = read(infd, &cp[romsize - inbuf.st_size], inbuf.st_size); if (readlen < inbuf.st_size) { - fprintf(stderr, "Wanted %d, got %d\n", inbuf.st_size, readlen); + fprintf(stderr, "Wanted %d, got %d\n", (int)inbuf.st_size, readlen); fatal("Read input file"); } @@ -85,7 +85,7 @@ int main(int argc, char *argv[]) readlen = read(payloadfd, cp, payloadbuf.st_size); if (readlen < payloadbuf.st_size) { fprintf(stderr, "Wanted %d, got %d\n", - payloadbuf.st_size, readlen); + (int)payloadbuf.st_size, readlen); fatal("Read payload file"); } writelen = write(outfd, cp, romsize); -- cgit v1.2.3