summaryrefslogtreecommitdiffstats
path: root/libcutils
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-05-13 14:47:30 -0700
committerElliott Hughes <enh@google.com>2016-05-13 14:47:30 -0700
commit427c605b2ae0c243098559209b0285612389367a (patch)
tree35cf132a9fa63aa2d1cc7ff455045f617c6dd666 /libcutils
parent0504a94cd9a1f6f5788051fceba6fb2d4bcc3615 (diff)
downloadcore-427c605b2ae0c243098559209b0285612389367a.tar.gz
core-427c605b2ae0c243098559209b0285612389367a.tar.bz2
core-427c605b2ae0c243098559209b0285612389367a.zip
Don't expose ashmem constants on the host.
Change-Id: I86bf58841645114e382300228be7be69a555e76b
Diffstat (limited to 'libcutils')
-rw-r--r--libcutils/ashmem-host.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcutils/ashmem-host.c b/libcutils/ashmem-host.c
index c85f06b00..1f9f753e4 100644
--- a/libcutils/ashmem-host.c
+++ b/libcutils/ashmem-host.c
@@ -62,12 +62,12 @@ int ashmem_set_prot_region(int fd __unused, int prot __unused)
int ashmem_pin_region(int fd __unused, size_t offset __unused, size_t len __unused)
{
- return ASHMEM_NOT_PURGED;
+ return 0 /*ASHMEM_NOT_PURGED*/;
}
int ashmem_unpin_region(int fd __unused, size_t offset __unused, size_t len __unused)
{
- return ASHMEM_IS_UNPINNED;
+ return 0 /*ASHMEM_IS_UNPINNED*/;
}
int ashmem_get_size_region(int fd)