Avoid pointer arithmetic on `void *`
authorMichael Forney <mforney@mforney.org>
Sat, 1 Jun 2019 22:01:23 +0000 (15:01 -0700)
committerSimon Ser <contact@emersion.fr>
Wed, 5 Jun 2019 10:01:07 +0000 (10:01 +0000)
commit678c8681e28739da1fea667ae59118cfc0968497
tree29ad003b66030c22f64f51c5ad8249c359901651
parent55d044810ca32ae24499d2c6aee6084d7e31d576
Avoid pointer arithmetic on `void *`

The pointer operand to the binary `+` operator must be to a complete
object type. Since we are working with byte sizes, use `char *` for
arithmetic instead.

Signed-off-by: Michael Forney <mforney@mforney.org>
src/wayland-util.c
tests/array-test.c