diff options
author | Tao Bao <tbao@google.com> | 2017-03-24 21:37:08 +0100 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-03-24 21:37:08 +0100 |
commit | 91d12f9ef15a69384eeb5905702b43d09eb6466f (patch) | |
tree | 2fcde7a023be5e8df5d6052a9b97a12db50bd35e /otafault | |
parent | Merge "Removed C-style casts" am: 110155a604 am: 6a831e02b6 (diff) | |
parent | Merge "Const modifiers" am: 4efd353d8f (diff) | |
download | android_bootable_recovery-91d12f9ef15a69384eeb5905702b43d09eb6466f.tar android_bootable_recovery-91d12f9ef15a69384eeb5905702b43d09eb6466f.tar.gz android_bootable_recovery-91d12f9ef15a69384eeb5905702b43d09eb6466f.tar.bz2 android_bootable_recovery-91d12f9ef15a69384eeb5905702b43d09eb6466f.tar.lz android_bootable_recovery-91d12f9ef15a69384eeb5905702b43d09eb6466f.tar.xz android_bootable_recovery-91d12f9ef15a69384eeb5905702b43d09eb6466f.tar.zst android_bootable_recovery-91d12f9ef15a69384eeb5905702b43d09eb6466f.zip |
Diffstat (limited to 'otafault')
-rw-r--r-- | otafault/ota_io.cpp | 2 | ||||
-rw-r--r-- | otafault/ota_io.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/otafault/ota_io.cpp b/otafault/ota_io.cpp index f5b01136f..3a89bb5dd 100644 --- a/otafault/ota_io.cpp +++ b/otafault/ota_io.cpp @@ -89,7 +89,7 @@ static int __ota_fclose(FILE* fh) { return fclose(fh); } -void OtaFcloser::operator()(FILE* f) { +void OtaFcloser::operator()(FILE* f) const { __ota_fclose(f); }; diff --git a/otafault/ota_io.h b/otafault/ota_io.h index 395b4230e..9428f1b1f 100644 --- a/otafault/ota_io.h +++ b/otafault/ota_io.h @@ -59,7 +59,7 @@ using unique_fd = android::base::unique_fd_impl<OtaCloser>; int ota_close(unique_fd& fd); struct OtaFcloser { - void operator()(FILE*); + void operator()(FILE*) const; }; using unique_file = std::unique_ptr<FILE, OtaFcloser>; |