diff options
author | Josh Gao <jmgao@google.com> | 2018-07-25 16:51:59 -0700 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2018-07-25 18:08:45 -0700 |
commit | 73a5ee4df5628681899f0e2e81ff77d768599e4d (patch) | |
tree | 1ac209cb5cbe6aa93cdee907616ff81a0160e522 /adb/daemon/file_sync_service.cpp | |
parent | 2deb787ee25f202f0a68d7cd7460f922d8cdbf9c (diff) |
adb: use adb's unique_fd instead of android::base.
Replace all usages of android::base::unique_fd with the unique_fd from
adb_unique_fd.h, which calls adb_close instead of close on Windows.
Most of these changes are no-ops, except for the ones to
create_service_thread, which was probably pretty broken on Windows.
Test: python test_device.py
Test: adb_test
Test: wine adb_test.exe
Change-Id: Ia4d03f9e2e7ddc88c97dc64172d721f93f3bf853
Diffstat (limited to 'adb/daemon/file_sync_service.cpp')
-rw-r--r-- | adb/daemon/file_sync_service.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/adb/daemon/file_sync_service.cpp b/adb/daemon/file_sync_service.cpp index 7ae806a0e..8c39a20fa 100644 --- a/adb/daemon/file_sync_service.cpp +++ b/adb/daemon/file_sync_service.cpp @@ -527,7 +527,7 @@ static bool handle_sync_command(int fd, std::vector<char>& buffer) { return true; } -void file_sync_service(android::base::unique_fd fd) { +void file_sync_service(unique_fd fd) { std::vector<char> buffer(SYNC_DATA_MAX); while (handle_sync_command(fd.get(), buffer)) { |