mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
cursor: use MAP_FAILED instead of hardcoded constant
Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
parent
04efea1727
commit
2dcc35af81
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ shm_pool_resize(struct shm_pool *pool, int size)
|
|||
|
||||
pool->data = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED,
|
||||
pool->fd, 0);
|
||||
if (pool->data == (void *)-1)
|
||||
if (pool->data == MAP_FAILED)
|
||||
return 0;
|
||||
pool->size = size;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue