diff options
Diffstat (limited to 'run-as')
-rw-r--r-- | run-as/Android.mk | 6 | ||||
-rw-r--r-- | run-as/package.c | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/run-as/Android.mk b/run-as/Android.mk index a8f2885..3774acc 100644 --- a/run-as/Android.mk +++ b/run-as/Android.mk @@ -1,10 +1,12 @@ LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) -LOCAL_SRC_FILES:= run-as.c package.c +LOCAL_SRC_FILES := run-as.c package.c LOCAL_SHARED_LIBRARIES := libselinux -LOCAL_MODULE:= run-as +LOCAL_MODULE := run-as + +LOCAL_CFLAGS := -Werror include $(BUILD_EXECUTABLE) diff --git a/run-as/package.c b/run-as/package.c index 901e9e3..4f8f3a7 100644 --- a/run-as/package.c +++ b/run-as/package.c @@ -128,7 +128,9 @@ map_file(const char* filename, size_t* filesize) } /* Memory-map the file now */ - address = TEMP_FAILURE_RETRY(mmap(NULL, length, PROT_READ, MAP_PRIVATE, fd, 0)); + do { + address = mmap(NULL, length, PROT_READ, MAP_PRIVATE, fd, 0); + } while (address == MAP_FAILED && errno == EINTR); if (address == MAP_FAILED) { address = NULL; goto EXIT; @@ -408,10 +410,6 @@ parse_positive_decimal(const char** pp, const char* end) value = -1; } return value; - -BAD: - *pp = p; - return -1; } /* Read the system's package database and extract information about |