Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit bacf210

Browse files
author
leo
committed
libefiwrapper: use EFI_DISK_IO_PROTOCOL rather than struct _EFI_DISK_IO in diskio.c
This fix the build with gnuefi version >= 3.0.5 Signed-off-by: leo <[email protected]>
1 parent 1051d0f commit bacf210

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libefiwrapper/diskio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static EFI_STATUS read_block(media_t *media, EFI_LBA lba,
5757
}
5858

5959
static EFIAPI EFI_STATUS
60-
diskio_read(struct _EFI_DISK_IO *This,
60+
diskio_read(EFI_DISK_IO_PROTOCOL *This,
6161
UINT32 MediaId,
6262
UINT64 Offset,
6363
UINTN BufferSize,
@@ -120,7 +120,7 @@ diskio_read(struct _EFI_DISK_IO *This,
120120
}
121121

122122
static EFIAPI EFI_STATUS
123-
diskio_write(struct _EFI_DISK_IO *This,
123+
diskio_write(EFI_DISK_IO_PROTOCOL *This,
124124
UINT32 MediaId,
125125
UINT64 Offset,
126126
UINTN BufferSize,

0 commit comments

Comments
 (0)