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
 	/* Allocate and copy initrd content */
201
 	/* Allocate and copy initrd content */
202
 	image->data = umalloc ( initrd_len );
202
 	image->data = umalloc ( initrd_len );
203
 	if ( ! image->data ) {
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
 		       "initrd\n", initrd_len );
205
 		       "initrd\n", initrd_len );
206
 		rc = -ENOMEM;
206
 		rc = -ENOMEM;
207
 		goto err_umalloc;
207
 		goto err_umalloc;

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

160
  * @v int13		Emulated drive
160
  * @v int13		Emulated drive
161
  * @ret blksize		Sector size
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
 	return ( int13->capacity.blksize << int13->blksize_shift );
164
 	return ( int13->capacity.blksize << int13->blksize_shift );
165
 }
165
 }
166
 
166
 

Loading…
Cancel
Save