mirror of
https://github.com/ipxe/ipxe
synced 2025-12-18 10:30:23 +03:00
[build] Fix compilation under Cygwin
Originally-fixed-by: Steve Goodrich <steve.goodrich@se-eng.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -201,7 +201,7 @@ static int initrd_init ( void ) {
|
|||||||
/* Allocate and copy initrd content */
|
/* Allocate and copy initrd content */
|
||||||
image->data = umalloc ( initrd_len );
|
image->data = umalloc ( initrd_len );
|
||||||
if ( ! image->data ) {
|
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 );
|
"initrd\n", initrd_len );
|
||||||
rc = -ENOMEM;
|
rc = -ENOMEM;
|
||||||
goto err_umalloc;
|
goto err_umalloc;
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ static uint8_t num_drives;
|
|||||||
* @v int13 Emulated drive
|
* @v int13 Emulated drive
|
||||||
* @ret blksize Sector size
|
* @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 );
|
return ( int13->capacity.blksize << int13->blksize_shift );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user