diff options
author | Tao Bao | 2016-10-13 17:17:04 -0500 |
---|---|---|
committer | Tao Bao | 2016-10-26 16:36:42 -0500 |
commit | c0319b60f56d445c2d1c74f551e01f069b028fe6 (patch) | |
tree | 2df23be127c0e92bf1e1be19dada2dd2e4182479 /verifier.cpp | |
parent | ebc141dff27c53d7043bf7fc61cd435ac4d13160 (diff) | |
download | platform-bootable-recovery-c0319b60f56d445c2d1c74f551e01f069b028fe6.tar.gz platform-bootable-recovery-c0319b60f56d445c2d1c74f551e01f069b028fe6.tar.xz platform-bootable-recovery-c0319b60f56d445c2d1c74f551e01f069b028fe6.zip |
Some cleanups to recovery.
- Remove the duplicate gCurrentUI variable in recovery.cpp;
- Refactor the load/save of locale functions;
- Clean up ui_print() to get rid of 256-byte buffer limit;
- Declare ui in common.h;
- Move the typedef of Volume into roots.h.
Test: Build and boot into recovery image.
Change-Id: Ia28c116858ca754133127a5ff9c722af67ad55b7
Diffstat (limited to 'verifier.cpp')
-rw-r--r-- | verifier.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/verifier.cpp b/verifier.cpp index 82cdd3bc..44098f70 100644 --- a/verifier.cpp +++ b/verifier.cpp | |||
@@ -14,9 +14,11 @@ | |||
14 | * limitations under the License. | 14 | * limitations under the License. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #include "verifier.h" | ||
18 | |||
17 | #include <errno.h> | 19 | #include <errno.h> |
18 | #include <malloc.h> | ||
19 | #include <stdio.h> | 20 | #include <stdio.h> |
21 | #include <stdlib.h> | ||
20 | #include <string.h> | 22 | #include <string.h> |
21 | 23 | ||
22 | #include <algorithm> | 24 | #include <algorithm> |
@@ -31,9 +33,6 @@ | |||
31 | #include "common.h" | 33 | #include "common.h" |
32 | #include "print_sha1.h" | 34 | #include "print_sha1.h" |
33 | #include "ui.h" | 35 | #include "ui.h" |
34 | #include "verifier.h" | ||
35 | |||
36 | extern RecoveryUI* ui; | ||
37 | 36 | ||
38 | static constexpr size_t MiB = 1024 * 1024; | 37 | static constexpr size_t MiB = 1024 * 1024; |
39 | 38 | ||