Use MAP_FAILED instead of (void *) -1
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Fri, 19 Mar 2021 11:24:05 +0000 (11:24 +0000)
committerAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Mon, 22 Mar 2021 14:05:11 +0000 (14:05 +0000)
commit1349d3d15bf7d100d0eae52d976a121d2dcf32ce
tree81b6d977e6a674cc54c91e369b7d18555a8522e9
parent3bda3d1b4729c8ee7c533520a199611cb841bc8f
Use MAP_FAILED instead of (void *) -1

While MAP_FAILED is generally defined to that value, we should not be
relying on implementation details of system headers.

Signed-off-by: Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Reviewed-by: Simon Ser <contact@emersion.fr>
src/wayland-shm.c