sim/rx: avoid pointer arithmetic on void * pointers
authorAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 1 Feb 2021 11:37:46 +0000 (11:37 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 8 Feb 2021 11:01:07 +0000 (11:01 +0000)
commitda9ecd6085aa03f6f671f1e42431642912635820
tree29ab615d0271ba45401ada319911f7ee1476a545
parentfab2b376e305bfb4c55a51a15d8c7a293628d735
sim/rx: avoid pointer arithmetic on void * pointers

Pointer arithmetic on void * pointers results in a GCC warning.  Avoid
the warning by casting the pointer to its actual type earlier in the
function.

sim/rx/ChangeLog:

* mem.c (mem_put_blk): Rename parameter, add cast from parameter
type to local type.  Remove cast later in the function.
(mem_get_blk): Likewise.
* mem.h (mem_put_blk): Rename parameter to match definition.
(mem_get_blk): Likewise.
sim/rx/ChangeLog
sim/rx/mem.c
sim/rx/mem.h