]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Fix compilation under Cygwin
authorMichael Brown <mcb30@ipxe.org>
Thu, 22 Mar 2012 23:52:24 +0000 (23:52 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 22 Mar 2012 23:52:24 +0000 (23:52 +0000)
Originally-fixed-by: Steve Goodrich <steve.goodrich@se-eng.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/core/runtime.c
src/arch/i386/interface/pcbios/int13.c

index 7d410c9919500d80bf8bbf2f4cc043160b4a21a2..4268457f7f3fc30159d1404904e776cea68e5451 100644 (file)
@@ -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;
index 8ce77ada2242657878bf5c6177984fb70f11bfcc..4bfc8a3a11566a054a09a1b6be2ba7bd6323b6e3 100644 (file)
@@ -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 );
 }