aboutsummaryrefslogtreecommitdiffstats
path: root/minui
diff options
context:
space:
mode:
authorTianjie Xu2017-07-10 17:13:33 -0500
committerTianjie Xu2017-07-19 14:17:41 -0500
commitde6735e80cc65be50381388640d94f1b1d0f20fa (patch)
treebdcda7cd5a4e2baa1f45c66f6a1698df47119175 /minui
parent8155a8ba74bce27626f3ce3f088951298c44776d (diff)
downloadplatform-bootable-recovery-de6735e80cc65be50381388640d94f1b1d0f20fa.tar.gz
platform-bootable-recovery-de6735e80cc65be50381388640d94f1b1d0f20fa.tar.xz
platform-bootable-recovery-de6735e80cc65be50381388640d94f1b1d0f20fa.zip
Fix the android-cloexec-* warnings in bootable/recovery
Add the O_CLOEXEC or 'e' accordingly. Bug: 63510015 Test: recovery tests pass Change-Id: I7094bcc6af22c9687eb535116b2ca6a59178b303
Diffstat (limited to 'minui')
-rw-r--r--minui/resources.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/minui/resources.cpp b/minui/resources.cpp
index 86c731b0..8f8d36d2 100644
--- a/minui/resources.cpp
+++ b/minui/resources.cpp
@@ -56,7 +56,7 @@ static int open_png(const char* name, png_structp* png_ptr, png_infop* info_ptr,
56 56
57 snprintf(resPath, sizeof(resPath)-1, "/res/images/%s.png", name); 57 snprintf(resPath, sizeof(resPath)-1, "/res/images/%s.png", name);
58 resPath[sizeof(resPath)-1] = '\0'; 58 resPath[sizeof(resPath)-1] = '\0';
59 FILE* fp = fopen(resPath, "rb"); 59 FILE* fp = fopen(resPath, "rbe");
60 if (fp == NULL) { 60 if (fp == NULL) {
61 result = -1; 61 result = -1;
62 goto exit; 62 goto exit;