summaryrefslogtreecommitdiffstats
path: root/rotate_logs.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2017-09-15 15:17:42 +0200
committerEthan Yonker <dees_troy@teamw.in>2017-09-15 15:17:42 +0200
commitd9918b7c380ef2c3c9b26190362ef91976c175d9 (patch)
treecd40321d9f31037630eb66819c822c79ff894cc1 /rotate_logs.cpp
parentAdd libraries needed in 8.0 for e2fsck and tune2fs (diff)
downloadandroid_bootable_recovery-d9918b7c380ef2c3c9b26190362ef91976c175d9.tar
android_bootable_recovery-d9918b7c380ef2c3c9b26190362ef91976c175d9.tar.gz
android_bootable_recovery-d9918b7c380ef2c3c9b26190362ef91976c175d9.tar.bz2
android_bootable_recovery-d9918b7c380ef2c3c9b26190362ef91976c175d9.tar.lz
android_bootable_recovery-d9918b7c380ef2c3c9b26190362ef91976c175d9.tar.xz
android_bootable_recovery-d9918b7c380ef2c3c9b26190362ef91976c175d9.tar.zst
android_bootable_recovery-d9918b7c380ef2c3c9b26190362ef91976c175d9.zip
Diffstat (limited to '')
-rw-r--r--rotate_logs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/rotate_logs.cpp b/rotate_logs.cpp
index fc220215e..51557b105 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;
}