aboutsummaryrefslogtreecommitdiff
path: root/bfd/peicode.h
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-10-06 10:33:13 -0700
committerAlan Modra <amodra@gmail.com>2021-10-11 19:13:41 +1030
commitb6fca8a3d501a4dca0726fe8b89d18d9ba5780c6 (patch)
treeceabb7f320e92d7a426ac13a3010fbb0d714243c /bfd/peicode.h
parent88b32237043a68d396d9f7c7f907b0fd2e1abf1a (diff)
downloadgdb-b6fca8a3d501a4dca0726fe8b89d18d9ba5780c6.zip
gdb-b6fca8a3d501a4dca0726fe8b89d18d9ba5780c6.tar.gz
gdb-b6fca8a3d501a4dca0726fe8b89d18d9ba5780c6.tar.bz2
bfd: Remove use of void pointer arithmetic
This is not valid in ISO C. Instead, use a pointer to bfd_byte. * peicode.h (pe_bfd_object_p): Remove use of void pointer arithmetic.
Diffstat (limited to 'bfd/peicode.h')
-rw-r--r--bfd/peicode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/peicode.h b/bfd/peicode.h
index c84b135..4195597 100644
--- a/bfd/peicode.h
+++ b/bfd/peicode.h
@@ -1474,7 +1474,7 @@ pe_bfd_object_p (bfd * abfd)
if (opt_hdr_size != 0)
{
bfd_size_type amt = opt_hdr_size;
- void * opthdr;
+ bfd_byte * opthdr;
/* PR 17521 file: 230-131433-0.004. */
if (amt < sizeof (PEAOUTHDR))