diff options
author | Yifan Hong <elsk@google.com> | 2018-12-17 14:29:06 -0800 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2018-12-18 15:57:29 -0800 |
commit | d81b8e3d775743dbc2ce49b805cbce6fcc0ea617 (patch) | |
tree | 8e2c7ab494310eb77777e756b6a76940e2e28572 /install.cpp | |
parent | 0f339e27bb753b0dafb17a315fa4b029ba31aa28 (diff) | |
download | android_bootable_recovery-d81b8e3d775743dbc2ce49b805cbce6fcc0ea617.tar.gz android_bootable_recovery-d81b8e3d775743dbc2ce49b805cbce6fcc0ea617.tar.bz2 android_bootable_recovery-d81b8e3d775743dbc2ce49b805cbce6fcc0ea617.zip |
roots.cpp: convert to C++ Fstab
Convert code to use C++ Fstab struct and C++ std::strings.
Bug: 62292478
Bug: 118634720
Test: boots
Change-Id: Ibdc1df5831bc885d7c1574419f41af026e49a137
Diffstat (limited to 'install.cpp')
-rw-r--r-- | install.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/install.cpp b/install.cpp index 680937dd..ce3d4f6a 100644 --- a/install.cpp +++ b/install.cpp @@ -595,9 +595,9 @@ static int really_install_package(const std::string& path, bool* wipe_cache, boo if (needs_mount) { if (path[0] == '@') { - ensure_path_mounted(path.substr(1).c_str()); + ensure_path_mounted(path.substr(1)); } else { - ensure_path_mounted(path.c_str()); + ensure_path_mounted(path); } } |