commit | 09ccf1fa62cef5ce1f3766683df29b8467444a79 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Sat Jul 18 12:21:30 2015 -0700 |
committer | Elliott Hughes <enh@google.com> | Tue Jul 21 15:25:14 2015 -0700 |
tree | 2be312cbca0b49375c67d451a2648042d3efa370 | |
parent | e91631558898a0b8f7a3ea2b74b7726d78c2f227 [diff] [blame] |
Recognize IPv6 addresses for "adb connect". Bug: http://b/22559299 Change-Id: I32891d706b5010c38db84a056e76dd279b780f75
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 @@ 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();