Browse Source

[build] Fix compilation under Cygwin

Originally-fixed-by: Steve Goodrich <steve.goodrich@se-eng.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 years ago
parent
commit
4766b1455f
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      src/arch/i386/core/runtime.c
  2. 1
    1
      src/arch/i386/interface/pcbios/int13.c

+ 1
- 1
src/arch/i386/core/runtime.c View File

@@ -201,7 +201,7 @@ static int initrd_init ( void ) {
201 201
 	/* Allocate and copy initrd content */
202 202
 	image->data = umalloc ( initrd_len );
203 203
 	if ( ! image->data ) {
204
-		DBGC ( colour, "RUNTIME could not allocate %zd bytes for "
204
+		DBGC ( colour, "RUNTIME could not allocate %d bytes for "
205 205
 		       "initrd\n", initrd_len );
206 206
 		rc = -ENOMEM;
207 207
 		goto err_umalloc;

+ 1
- 1
src/arch/i386/interface/pcbios/int13.c View File

@@ -160,7 +160,7 @@ static uint8_t num_drives;
160 160
  * @v int13		Emulated drive
161 161
  * @ret blksize		Sector size
162 162
  */
163
-static inline unsigned int int13_blksize ( struct int13_drive *int13 ) {
163
+static inline size_t int13_blksize ( struct int13_drive *int13 ) {
164 164
 	return ( int13->capacity.blksize << int13->blksize_shift );
165 165
 }
166 166
 

Loading…
Cancel
Save