Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nkk71@ubuntu:~/android/omni-slim-twrp/bootable/recovery$ git diff
- diff --git a/Android.mk b/Android.mk
- index 7338adf..20c0385 100644
- --- a/Android.mk
- +++ b/Android.mk
- @@ -558,7 +558,7 @@ endif # !TW_USE_TOOLBOX
- # ===============================
- ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 24; echo $$?),0)
- include $(CLEAR_VARS)
- - LOCAL_SRC_FILES := recovery-persist.cpp
- + LOCAL_SRC_FILES := recovery-persist.cpp rotate_logs.cpp
- LOCAL_MODULE := recovery-persist
- LOCAL_SHARED_LIBRARIES := liblog libbase
- LOCAL_CFLAGS := -Werror
- @@ -570,9 +570,9 @@ endif
- # ===============================
- ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 24; echo $$?),0)
- include $(CLEAR_VARS)
- - LOCAL_SRC_FILES := recovery-refresh.cpp
- + LOCAL_SRC_FILES := recovery-refresh.cpp rotate_logs.cpp
- LOCAL_MODULE := recovery-refresh
- - LOCAL_SHARED_LIBRARIES := liblog
- + LOCAL_SHARED_LIBRARIES := liblog libbase
- LOCAL_CFLAGS := -Werror
- LOCAL_INIT_RC := recovery-refresh.rc
- include $(BUILD_EXECUTABLE)
- diff --git a/rotate_logs.cpp b/rotate_logs.cpp
- index fc22021..51557b1 100644
- --- a/rotate_logs.cpp
- +++ b/rotate_logs.cpp
- @@ -74,7 +74,7 @@ ssize_t logrotate(
- name += ".1";
- } else {
- size_t i;
- - if (!android::base::ParseUint(number, &i)) {
- + if (!android::base::ParseUint(number.c_str(), &i)) {
- LOG(ERROR) << "failed to parse uint in " << number;
- return -1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement