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
|
@ -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…
Reference in New Issue
Block a user