From b4654a61054ea8b4ae2e4ecd1a6e12203cfbb6eb Mon Sep 17 00:00:00 2001 From: Yabin Cui Date: Tue, 11 Aug 2015 13:40:42 -0700 Subject: Remove confusing variable HOST. First, HOST is always 0 in adbd, which matches ADB_HOST=0. Second, HOST is always 1 when adb_main is called, which matches ADB_HOST=1. For adb client that doesn't call adb_main, it never touches local_init(), init_transport_registration() and fdevent_loop(). So the changes in adb.cpp, services.cpp and transport_local.cpp do nothing with it. As a conclusion, I think we can remove HOST and use ADB_HOST instead. Change-Id: Ide0e0eca7468b6c3c130f6b50974406280678b2e --- client/main.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'client/main.cpp') diff --git a/client/main.cpp b/client/main.cpp index 73acbb0..60b487c 100644 --- a/client/main.cpp +++ b/client/main.cpp @@ -133,8 +133,6 @@ static void setup_daemon_logging(void) { } int adb_main(int is_daemon, int server_port, int ack_reply_fd) { - HOST = 1; - #if defined(_WIN32) SetConsoleCtrlHandler(ctrlc_handler, TRUE); #else -- cgit v1.2.3