Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/stand/efiboot Avoid void * pointer arithmetic; cast to U...
details: https://anonhg.NetBSD.org/src/rev/3d0bb79ca9af
branches: trunk
changeset: 376360:3d0bb79ca9af
user: rin <rin%NetBSD.org@localhost>
date: Wed Jun 14 00:52:25 2023 +0000
description:
Avoid void * pointer arithmetic; cast to UINT8 * explicitly.
No binary changes for aarch64 at least.
diffstat:
sys/stand/efiboot/efiblock.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 6f69d497ae4b -r 3d0bb79ca9af sys/stand/efiboot/efiblock.c
--- a/sys/stand/efiboot/efiblock.c Wed Jun 14 00:42:21 2023 +0000
+++ b/sys/stand/efiboot/efiblock.c Wed Jun 14 00:52:25 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: efiblock.c,v 1.19 2022/04/24 06:49:38 mlelstv Exp $ */
+/* $NetBSD: efiblock.c,v 1.20 2023/06/14 00:52:25 rin Exp $ */
/*-
* Copyright (c) 2016 Kimihiro Nonaka <nonaka%netbsd.org@localhost>
@@ -442,7 +442,7 @@ efi_block_find_partitions_gpt(struct efi
}
for (entry = 0; entry < le32toh(hdr.hdr_entries); entry++) {
- memcpy(&ent, buf + (entry * le32toh(hdr.hdr_entsz)),
+ memcpy(&ent, (UINT8 *)buf + (entry * le32toh(hdr.hdr_entsz)),
sizeof(ent));
efi_block_find_partitions_gpt_entry(bdev, &hdr, &ent, entry);
}
Home |
Main Index |
Thread Index |
Old Index