diff options
author | Richard Spiegel <richard.spiegel@amd.corp-partner.google.com> | 2018-11-02 11:14:38 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-11-16 09:42:00 +0000 |
commit | b59c1f4345d5528bcec2ede8487f11c04ac4de05 (patch) | |
tree | 7b4fab99f47fa3f3c3228cb235fa275ddf6ade76 /src/superio/nsc/pc87392 | |
parent | bc0c364ea3ef0332f19fd4a04d81d02c8d72832e (diff) |
util/cbfstool/cbfs_image.c: Get rid of void pointer math
Pointer math with void pointers is illegal in many compilers, though it
works with GCC because it assumes size of void to be 1. Change the pointers
or add parenthesis to force a proper order that will not cause compile
errors if compiled with a different compiler, and more importantly, don't
have unsuspected side effects.
BUG=b:118484178
TEST=Build CBFS with original code, run objdump and saved output. Added
modifications, build cbfs again, run objdump again, compared objdump outputs.
Change-Id: I30187de8ea24adba41083f3bfbd24c0e363ee4b8
Signed-off-by: Richard Spiegel <richard.spiegel@silverbackltd.com>
Reviewed-on: https://review.coreboot.org/29440
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Diffstat (limited to 'src/superio/nsc/pc87392')
0 files changed, 0 insertions, 0 deletions