summaryrefslogtreecommitdiff
path: root/adb/file_sync_client.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-04-21 22:43:56 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-04-21 22:43:56 +0000
commitfc28ac17a32da390c01a754039c73f4fbcf43f29 (patch)
tree637ba3de06ea38866ac24034fc4f186f3929afee /adb/file_sync_client.cpp
parentc1557acbd92dc67ef6c64b27d04a50b5aacb2f74 (diff)
parent6a2d5a34e81b75ac61337d401aab16bf917b47b1 (diff)
am 6a2d5a34: Merge "Fix "adb sync" for devices without vendor and oem."
* commit '6a2d5a34e81b75ac61337d401aab16bf917b47b1': Fix "adb sync" for devices without vendor and oem.
Diffstat (limited to 'adb/file_sync_client.cpp')
-rw-r--r--adb/file_sync_client.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/adb/file_sync_client.cpp b/adb/file_sync_client.cpp
index 730a5e2432..49d87832f2 100644
--- a/adb/file_sync_client.cpp
+++ b/adb/file_sync_client.cpp
@@ -1027,18 +1027,18 @@ int do_sync_pull(const char *rpath, const char *lpath, int show_progress, int co
}
}
-int do_sync_sync(const char *lpath, const char *rpath, int listonly)
+int do_sync_sync(const std::string& lpath, const std::string& rpath, bool list_only)
{
- fprintf(stderr,"syncing %s...\n",rpath);
+ fprintf(stderr, "syncing %s...\n", rpath.c_str());
int fd = adb_connect("sync:");
- if(fd < 0) {
- fprintf(stderr,"error: %s\n", adb_error());
+ if (fd < 0) {
+ fprintf(stderr, "error: %s\n", adb_error());
return 1;
}
BEGIN();
- if(copy_local_dir_remote(fd, lpath, rpath, 1, listonly)){
+ if (copy_local_dir_remote(fd, lpath.c_str(), rpath.c_str(), 1, list_only)) {
return 1;
} else {
END();