diff options
author | Tao Bao <tbao@google.com> | 2017-05-03 01:47:33 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-05-03 01:47:33 +0200 |
commit | 08d9ede8f2776e416133f66f202dd847bdbca779 (patch) | |
tree | 8e47eb4eab95da0b23a2372f1af34c2f932e9905 /updater | |
parent | Merge "recovery: Change install_package() to take std::string." (diff) | |
parent | Merge "Move sysMapFile and sysReleaseMap into MemMapping class." (diff) | |
download | android_bootable_recovery-08d9ede8f2776e416133f66f202dd847bdbca779.tar android_bootable_recovery-08d9ede8f2776e416133f66f202dd847bdbca779.tar.gz android_bootable_recovery-08d9ede8f2776e416133f66f202dd847bdbca779.tar.bz2 android_bootable_recovery-08d9ede8f2776e416133f66f202dd847bdbca779.tar.lz android_bootable_recovery-08d9ede8f2776e416133f66f202dd847bdbca779.tar.xz android_bootable_recovery-08d9ede8f2776e416133f66f202dd847bdbca779.tar.zst android_bootable_recovery-08d9ede8f2776e416133f66f202dd847bdbca779.zip |
Diffstat (limited to 'updater')
-rw-r--r-- | updater/updater.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/updater/updater.cpp b/updater/updater.cpp index c09e267a5..749c86a1f 100644 --- a/updater/updater.cpp +++ b/updater/updater.cpp @@ -89,7 +89,7 @@ int main(int argc, char** argv) { const char* package_filename = argv[3]; MemMapping map; - if (sysMapFile(package_filename, &map) != 0) { + if (!map.MapFile(package_filename)) { LOG(ERROR) << "failed to map package " << argv[3]; return 3; } @@ -213,7 +213,6 @@ int main(int argc, char** argv) { if (updater_info.package_zip) { CloseArchive(updater_info.package_zip); } - sysReleaseMap(&map); return 0; } |