projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88b3223
)
bfd: Remove use of void pointer arithmetic
author
Michael Forney
<mforney@mforney.org>
Wed, 6 Oct 2021 17:33:13 +0000
(10:33 -0700)
committer
Alan Modra
<amodra@gmail.com>
Mon, 11 Oct 2021 08:43:41 +0000
(19:13 +1030)
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.
bfd/peicode.h
patch
|
blob
|
history
diff --git
a/bfd/peicode.h
b/bfd/peicode.h
index c84b135e1eb31d8154992734dda935176525eff3..41955975cdc621df3f53165a934a0d999140f09e 100644
(file)
--- 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))