summaryrefslogtreecommitdiffstats
path: root/legacy_property_service.c
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2014-11-10 18:22:10 +0100
committerEthan Yonker <dees_troy@teamw.in>2014-11-12 18:03:50 +0100
commitbcc502cff9fea2d892a0344879e420df1d10fb47 (patch)
tree05b239cbc41d72372343f4dbe78ee0674b3ee146 /legacy_property_service.c
parentupdate theme thanks to Alexey71 on xda. (diff)
downloadandroid_bootable_recovery-bcc502cff9fea2d892a0344879e420df1d10fb47.tar
android_bootable_recovery-bcc502cff9fea2d892a0344879e420df1d10fb47.tar.gz
android_bootable_recovery-bcc502cff9fea2d892a0344879e420df1d10fb47.tar.bz2
android_bootable_recovery-bcc502cff9fea2d892a0344879e420df1d10fb47.tar.lz
android_bootable_recovery-bcc502cff9fea2d892a0344879e420df1d10fb47.tar.xz
android_bootable_recovery-bcc502cff9fea2d892a0344879e420df1d10fb47.tar.zst
android_bootable_recovery-bcc502cff9fea2d892a0344879e420df1d10fb47.zip
Diffstat (limited to 'legacy_property_service.c')
-rw-r--r--legacy_property_service.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/legacy_property_service.c b/legacy_property_service.c
index 24d3aa920..490a24524 100644
--- a/legacy_property_service.c
+++ b/legacy_property_service.c
@@ -25,6 +25,8 @@
#include <limits.h>
#include <errno.h>
+#include "../../bionic/libc/private/bionic_futex.h"
+
#include <cutils/properties.h>
#include "legacy_properties.h"
@@ -181,7 +183,7 @@ static int legacy_property_set(const char *name, const char *value)
memcpy(pi->value, value, valuelen + 1);
pa->toc[pa->count] =
- (namelen << 24) | (((unsigned) pi) - ((unsigned) pa));
+ (namelen << 24) | (((unsigned long) pi) - ((unsigned long) pa));
pa->count++;
pa->serial++;