diff options
author | emaste <emaste@FreeBSD.org> | 2014-04-08 18:21:38 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2014-04-08 18:21:38 +0000 |
commit | 7fdcb667018796b2ee5de8880b027925ae1ff13b (patch) | |
tree | ea22fc99e425ecb57437a0ffa867d4eca5106181 | |
parent | f15cba3099ac7e78b41dd74786c27b60757b2c85 (diff) | |
download | FreeBSD-src-7fdcb667018796b2ee5de8880b027925ae1ff13b.zip FreeBSD-src-7fdcb667018796b2ee5de8880b027925ae1ff13b.tar.gz |
Add explicit casts to quiet warnings in libefi
Sponsored by: The FreeBSD Foundation
-rw-r--r-- | sys/boot/efi/libefi/efipart.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/boot/efi/libefi/efipart.c b/sys/boot/efi/libefi/efipart.c index d170c86..13dc0ac 100644 --- a/sys/boot/efi/libefi/efipart.c +++ b/sys/boot/efi/libefi/efipart.c @@ -93,14 +93,16 @@ efipart_init(void) bzero(aliases, nin * sizeof(EFI_HANDLE)); 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)) { continue; } node = devpath; while (!IsDevicePathEnd(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)) continue; if (!blkio->Media->LogicalPartition) @@ -147,7 +149,7 @@ efipart_print(int verbose) sprintf(line, " %s%d:", efipart_dev.dv_name, unit); pager_output(line); - status = BS->HandleProtocol(h, &blkio_guid, &blkio); + status = BS->HandleProtocol(h, &blkio_guid, (void **)&blkio); if (!EFI_ERROR(status)) { sprintf(line, " %llu blocks", (unsigned long long)(blkio->Media->LastBlock + 1)); @@ -176,7 +178,7 @@ efipart_open(struct open_file *f, ...) if (h == NULL) return (EINVAL); - status = BS->HandleProtocol(h, &blkio_guid, &blkio); + status = BS->HandleProtocol(h, &blkio_guid, (void **)&blkio); if (EFI_ERROR(status)) return (efi_status_to_errno(status)); |