Add explicit casts to quiet warnings in libefi
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
f58d027be1
commit
b900a57189
@ -93,14 +93,16 @@ efipart_init(void)
|
|||||||
bzero(aliases, nin * sizeof(EFI_HANDLE));
|
bzero(aliases, nin * sizeof(EFI_HANDLE));
|
||||||
|
|
||||||
for (n = 0; n < nin; n++) {
|
for (n = 0; n < nin; n++) {
|
||||||
status = BS->HandleProtocol(hin[n], &devpath_guid, &devpath);
|
status = BS->HandleProtocol(hin[n], &devpath_guid,
|
||||||
|
(void **)&devpath);
|
||||||
if (EFI_ERROR(status)) {
|
if (EFI_ERROR(status)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
node = devpath;
|
node = devpath;
|
||||||
while (!IsDevicePathEnd(NextDevicePathNode(node)))
|
while (!IsDevicePathEnd(NextDevicePathNode(node)))
|
||||||
node = NextDevicePathNode(node);
|
node = NextDevicePathNode(node);
|
||||||
status = BS->HandleProtocol(hin[n], &blkio_guid, &blkio);
|
status = BS->HandleProtocol(hin[n], &blkio_guid,
|
||||||
|
(void**)&blkio);
|
||||||
if (EFI_ERROR(status))
|
if (EFI_ERROR(status))
|
||||||
continue;
|
continue;
|
||||||
if (!blkio->Media->LogicalPartition)
|
if (!blkio->Media->LogicalPartition)
|
||||||
@ -147,7 +149,7 @@ efipart_print(int verbose)
|
|||||||
sprintf(line, " %s%d:", efipart_dev.dv_name, unit);
|
sprintf(line, " %s%d:", efipart_dev.dv_name, unit);
|
||||||
pager_output(line);
|
pager_output(line);
|
||||||
|
|
||||||
status = BS->HandleProtocol(h, &blkio_guid, &blkio);
|
status = BS->HandleProtocol(h, &blkio_guid, (void **)&blkio);
|
||||||
if (!EFI_ERROR(status)) {
|
if (!EFI_ERROR(status)) {
|
||||||
sprintf(line, " %llu blocks",
|
sprintf(line, " %llu blocks",
|
||||||
(unsigned long long)(blkio->Media->LastBlock + 1));
|
(unsigned long long)(blkio->Media->LastBlock + 1));
|
||||||
@ -176,7 +178,7 @@ efipart_open(struct open_file *f, ...)
|
|||||||
if (h == NULL)
|
if (h == NULL)
|
||||||
return (EINVAL);
|
return (EINVAL);
|
||||||
|
|
||||||
status = BS->HandleProtocol(h, &blkio_guid, &blkio);
|
status = BS->HandleProtocol(h, &blkio_guid, (void **)&blkio);
|
||||||
if (EFI_ERROR(status))
|
if (EFI_ERROR(status))
|
||||||
return (efi_status_to_errno(status));
|
return (efi_status_to_errno(status));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user