From a5268097f605452a362ec0d49f9b3dd9174c1e92 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Sat, 18 Jul 2015 12:21:30 -0700 Subject: Recognize IPv6 addresses for "adb connect". Bug: http://b/22559299 Change-Id: I32891d706b5010c38db84a056e76dd279b780f75 --- adb_client.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'adb_client.cpp') diff --git a/adb_client.cpp b/adb_client.cpp index ef9a586..9a1b761 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(); -- cgit v1.2.3