summaryrefslogtreecommitdiff
path: root/adb_client.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-07-21 22:29:05 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-07-21 22:29:05 +0000
commit97e8d197771761ddb1024660ae02c3efd0749584 (patch)
tree38fe843e2d484b963ad731829ed53f207159f2c3 /adb_client.cpp
parentc3881d176113a7fd2fc16f93958d09d4da3b9507 (diff)
parenta5268097f605452a362ec0d49f9b3dd9174c1e92 (diff)
downloadadb-97e8d197771761ddb1024660ae02c3efd0749584.tar.gz
Merge "Recognize IPv6 addresses for "adb connect"."
Diffstat (limited to 'adb_client.cpp')
-rw-r--r--adb_client.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/adb_client.cpp b/adb_client.cpp
index e42d928..75e888d 100644
--- a/adb_client.cpp
+++ b/adb_client.cpp
@@ -277,8 +277,7 @@ bool adb_query(const std::string& service, std::string* result, std::string* err
D("adb_query: %s\n", service.c_str());
int fd = adb_connect(service, error);
if (fd < 0) {
- fprintf(stderr,"error: %s\n", error->c_str());
- return 0;
+ return false;
}
result->clear();