Merge "init: fix type of 2nd argument passed to prctl"
diff --git a/init/service.cpp b/init/service.cpp
index fc64db6..e800d32 100644
--- a/init/service.cpp
+++ b/init/service.cpp
@@ -225,8 +225,8 @@
if (capabilities_.any() && uid_) {
// If Android is running in a container, some securebits might already
// be locked, so don't change those.
- int64_t securebits = prctl(PR_GET_SECUREBITS);
- if (securebits == -1) {
+ unsigned long securebits = prctl(PR_GET_SECUREBITS);
+ if (securebits == -1UL) {
PLOG(FATAL) << "prctl(PR_GET_SECUREBITS) failed for " << name_;
}
securebits |= SECBIT_KEEP_CAPS | SECBIT_KEEP_CAPS_LOCKED;