diff options
| author | Michael Brown | 2012-03-23 00:52:24 +0100 |
|---|---|---|
| committer | Michael Brown | 2012-03-23 00:52:24 +0100 |
| commit | 4766b1455f590760af778262be1fe2963a1549a1 (patch) | |
| tree | 56d53cd71c5989dc33e285dd253cb116295c8905 | |
| parent | [image] Add concept of trusted images (diff) | |
| download | ipxe-4766b1455f590760af778262be1fe2963a1549a1.tar.gz ipxe-4766b1455f590760af778262be1fe2963a1549a1.tar.xz ipxe-4766b1455f590760af778262be1fe2963a1549a1.zip | |
[build] Fix compilation under Cygwin
Originally-fixed-by: Steve Goodrich <steve.goodrich@se-eng.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
| -rw-r--r-- | src/arch/i386/core/runtime.c | 2 | ||||
| -rw-r--r-- | 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 ); } |
