summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-11-09 06:32:05 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-11-09 06:32:06 +0100
commitb80d136dca4deb8e4c65d4e069409fc4c8119e66 (patch)
treeb9016b5183c2bbc23972e669c4ad109d9e060db2
parentMerge "Make make_parent() to take const argument" (diff)
parentotautil: Clean up obsolete includes. (diff)
downloadandroid_bootable_recovery-b80d136dca4deb8e4c65d4e069409fc4c8119e66.tar
android_bootable_recovery-b80d136dca4deb8e4c65d4e069409fc4c8119e66.tar.gz
android_bootable_recovery-b80d136dca4deb8e4c65d4e069409fc4c8119e66.tar.bz2
android_bootable_recovery-b80d136dca4deb8e4c65d4e069409fc4c8119e66.tar.lz
android_bootable_recovery-b80d136dca4deb8e4c65d4e069409fc4c8119e66.tar.xz
android_bootable_recovery-b80d136dca4deb8e4c65d4e069409fc4c8119e66.tar.zst
android_bootable_recovery-b80d136dca4deb8e4c65d4e069409fc4c8119e66.zip
-rw-r--r--otautil/Android.mk6
-rw-r--r--otautil/SysUtil.cpp7
2 files changed, 1 insertions, 12 deletions
diff --git a/otautil/Android.mk b/otautil/Android.mk
index 3acfa533e..e602f19ee 100644
--- a/otautil/Android.mk
+++ b/otautil/Android.mk
@@ -20,16 +20,10 @@ LOCAL_SRC_FILES := \
DirUtil.cpp \
ZipUtil.cpp
-LOCAL_C_INCLUDES := \
- external/zlib \
- external/safe-iop/include
-
LOCAL_STATIC_LIBRARIES := libselinux libbase
LOCAL_MODULE := libotautil
-LOCAL_CLANG := true
-
LOCAL_CFLAGS += -Werror -Wall
include $(BUILD_STATIC_LIBRARY)
diff --git a/otautil/SysUtil.cpp b/otautil/SysUtil.cpp
index a8d5f4ad3..a2133b953 100644
--- a/otautil/SysUtil.cpp
+++ b/otautil/SysUtil.cpp
@@ -16,17 +16,12 @@
#include "SysUtil.h"
-#include <assert.h>
#include <errno.h>
#include <fcntl.h>
-#include <limits.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include <stdint.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
-#include <unistd.h>
#include <algorithm>
#include <string>