From: Michael Brown Date: Thu, 22 Mar 2012 23:52:24 +0000 (+0000) Subject: [build] Fix compilation under Cygwin X-Git-Tag: v1.20.1~1895 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4766b1455f590760af778262be1fe2963a1549a1;p=thirdparty%2Fipxe.git [build] Fix compilation under Cygwin Originally-fixed-by: Steve Goodrich Signed-off-by: Michael Brown --- diff --git a/src/arch/i386/core/runtime.c b/src/arch/i386/core/runtime.c index 7d410c991..4268457f7 100644 --- a/src/arch/i386/core/runtime.c +++ b/src/arch/i386/core/runtime.c @@ -201,7 +201,7 @@ static int initrd_init ( void ) { /* Allocate and copy initrd content */ image->data = umalloc ( initrd_len ); if ( ! image->data ) { - DBGC ( colour, "RUNTIME could not allocate %zd bytes for " + DBGC ( colour, "RUNTIME could not allocate %d bytes for " "initrd\n", initrd_len ); rc = -ENOMEM; goto err_umalloc; diff --git a/src/arch/i386/interface/pcbios/int13.c b/src/arch/i386/interface/pcbios/int13.c index 8ce77ada2..4bfc8a3a1 100644 --- a/src/arch/i386/interface/pcbios/int13.c +++ b/src/arch/i386/interface/pcbios/int13.c @@ -160,7 +160,7 @@ static uint8_t num_drives; * @v int13 Emulated drive * @ret blksize Sector size */ -static inline unsigned int int13_blksize ( struct int13_drive *int13 ) { +static inline size_t int13_blksize ( struct int13_drive *int13 ) { return ( int13->capacity.blksize << int13->blksize_shift ); }