Advertisement
nkk71

Untitled

Sep 13th, 2017
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. nkk71@ubuntu:~/android/omni-slim-twrp/bootable/recovery$ git diff
  2. diff --git a/Android.mk b/Android.mk
  3. index 7338adf..20c0385 100644
  4. --- a/Android.mk
  5. +++ b/Android.mk
  6. @@ -558,7 +558,7 @@ endif # !TW_USE_TOOLBOX
  7. # ===============================
  8. ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 24; echo $$?),0)
  9. include $(CLEAR_VARS)
  10. - LOCAL_SRC_FILES := recovery-persist.cpp
  11. + LOCAL_SRC_FILES := recovery-persist.cpp rotate_logs.cpp
  12. LOCAL_MODULE := recovery-persist
  13. LOCAL_SHARED_LIBRARIES := liblog libbase
  14. LOCAL_CFLAGS := -Werror
  15. @@ -570,9 +570,9 @@ endif
  16. # ===============================
  17. ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 24; echo $$?),0)
  18. include $(CLEAR_VARS)
  19. - LOCAL_SRC_FILES := recovery-refresh.cpp
  20. + LOCAL_SRC_FILES := recovery-refresh.cpp rotate_logs.cpp
  21. LOCAL_MODULE := recovery-refresh
  22. - LOCAL_SHARED_LIBRARIES := liblog
  23. + LOCAL_SHARED_LIBRARIES := liblog libbase
  24. LOCAL_CFLAGS := -Werror
  25. LOCAL_INIT_RC := recovery-refresh.rc
  26. include $(BUILD_EXECUTABLE)
  27. diff --git a/rotate_logs.cpp b/rotate_logs.cpp
  28. index fc22021..51557b1 100644
  29. --- a/rotate_logs.cpp
  30. +++ b/rotate_logs.cpp
  31. @@ -74,7 +74,7 @@ ssize_t logrotate(
  32. name += ".1";
  33. } else {
  34. size_t i;
  35. - if (!android::base::ParseUint(number, &i)) {
  36. + if (!android::base::ParseUint(number.c_str(), &i)) {
  37. LOG(ERROR) << "failed to parse uint in " << number;
  38. return -1;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement