Ver código fonte

[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 anos atrás
pai
commit
4766b1455f

+ 1
- 1
src/arch/i386/core/runtime.c Ver arquivo

@@ -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 Ver arquivo

@@ -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
 

Carregando…
Cancelar
Salvar