android/vmem: use constant ASHMEM_NAME_DEF

This commit is contained in:
scribam 2021-12-17 18:43:40 +01:00 committed by flyinghead
parent 32716e1480
commit 8e305bfd0f
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ int ashmem_create_region(const char *name, size_t size)
if (fd < 0)
{
fd = open("/dev/ashmem", O_RDWR);
fd = open("/" ASHMEM_NAME_DEF, O_RDWR);
if (fd >= 0 && ioctl(fd, ASHMEM_SET_SIZE, size) < 0)
{
close(fd);