diff options
author | Tao Bao <tbao@google.com> | 2017-10-02 19:44:27 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-10-02 19:44:27 +0200 |
commit | e8ee697364c1d123dccd3249a9f9e062e40a0fb4 (patch) | |
tree | e93f120a4fb11419ef90c08735e4fe2701befd9e | |
parent | Merge "otafault: Move to soong." (diff) | |
parent | roots: Remove #include "common.h". (diff) | |
download | android_bootable_recovery-e8ee697364c1d123dccd3249a9f9e062e40a0fb4.tar android_bootable_recovery-e8ee697364c1d123dccd3249a9f9e062e40a0fb4.tar.gz android_bootable_recovery-e8ee697364c1d123dccd3249a9f9e062e40a0fb4.tar.bz2 android_bootable_recovery-e8ee697364c1d123dccd3249a9f9e062e40a0fb4.tar.lz android_bootable_recovery-e8ee697364c1d123dccd3249a9f9e062e40a0fb4.tar.xz android_bootable_recovery-e8ee697364c1d123dccd3249a9f9e062e40a0fb4.tar.zst android_bootable_recovery-e8ee697364c1d123dccd3249a9f9e062e40a0fb4.zip |
-rw-r--r-- | roots.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -20,6 +20,7 @@ #include <fcntl.h> #include <stdint.h> #include <stdlib.h> +#include <string.h> #include <sys/mount.h> #include <sys/stat.h> #include <sys/types.h> @@ -38,7 +39,6 @@ #include <ext4_utils/wipe.h> #include <fs_mgr.h> -#include "common.h" #include "mounts.h" static struct fstab* fstab = nullptr; @@ -77,7 +77,7 @@ Volume* volume_for_path(const char* path) { if (path == nullptr || path[0] == '\0') return nullptr; std::string str(path); while (true) { - Volume* result = fs_mgr_get_entry_for_mount_point(fstab, str.c_str()); + Volume* result = fs_mgr_get_entry_for_mount_point(fstab, str); if (result != nullptr || str == "/") { return result; } |