summaryrefslogtreecommitdiff
path: root/transport_usb.cpp
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2016-04-18 11:22:34 -0700
committerYabin Cui <yabinc@google.com>2016-04-18 11:22:34 -0700
commitf65e9a9fc9ce35842adb226ea94ecaff64b4b22d (patch)
tree2574a09598c2467301d7ee192ace42e1a2a34a60 /transport_usb.cpp
parent783902c78d97a4659402ee9a523a8e375a01bc5f (diff)
downloadadb-f65e9a9fc9ce35842adb226ea94ecaff64b4b22d.tar.gz
Fix kick_transport test.
Fix broken kick_transport test, and make it not access atransport internal variables. Bug: 25935458 Change-Id: I91b4d32a222b2f369f801bbe3903acac9c8ea4f7
Diffstat (limited to 'transport_usb.cpp')
-rw-r--r--transport_usb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/transport_usb.cpp b/transport_usb.cpp
index 263f9e7..d05d928 100644
--- a/transport_usb.cpp
+++ b/transport_usb.cpp
@@ -84,7 +84,7 @@ void init_usb_transport(atransport *t, usb_handle *h, ConnectionState state)
{
D("transport: usb");
t->close = remote_close;
- t->kick = remote_kick;
+ t->SetKickFunction(remote_kick);
t->read_from_remote = remote_read;
t->write_to_remote = remote_write;
t->sync_token = 1;