From 4766b1455f590760af778262be1fe2963a1549a1 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 22 Mar 2012 23:52:24 +0000 Subject: [PATCH] [build] Fix compilation under Cygwin Originally-fixed-by: Steve Goodrich Signed-off-by: Michael Brown --- src/arch/i386/core/runtime.c | 2 +- src/arch/i386/interface/pcbios/int13.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ); }