summaryrefslogtreecommitdiffstats
path: root/adb/client/commandline.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2018-08-10 14:23:43 -0700
committerJosh Gao <jmgao@google.com>2018-08-10 14:24:19 -0700
commite0323874808c7c915064086d4d7f6bd880882c88 (patch)
tree3ac05b1e0d686c20f0d7ada273b8e35c5ca061c4 /adb/client/commandline.cpp
parent5f42ee186dd78435d78d7ee757de9c2f25c5783f (diff)
downloadsystem_core-e0323874808c7c915064086d4d7f6bd880882c88.tar.gz
system_core-e0323874808c7c915064086d4d7f6bd880882c88.tar.bz2
system_core-e0323874808c7c915064086d4d7f6bd880882c88.zip
adb: minor cleanup.
Test: mma Change-Id: I874b10c2821ffe702fecd7e854bca2fbf4d701c3
Diffstat (limited to 'adb/client/commandline.cpp')
-rw-r--r--adb/client/commandline.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/adb/client/commandline.cpp b/adb/client/commandline.cpp
index da273fd3f..41ac663b6 100644
--- a/adb/client/commandline.cpp
+++ b/adb/client/commandline.cpp
@@ -1326,9 +1326,9 @@ static bool _use_legacy_install() {
}
int adb_commandline(int argc, const char** argv) {
- int no_daemon = 0;
- int is_daemon = 0;
- int is_server = 0;
+ bool no_daemon = false;
+ bool is_daemon = false;
+ bool is_server = false;
int r;
TransportType transport_type = kTransportAny;
int ack_reply_fd = -1;
@@ -1348,12 +1348,12 @@ int adb_commandline(int argc, const char** argv) {
while (argc > 0) {
if (!strcmp(argv[0],"server")) {
- is_server = 1;
+ is_server = true;
} else if (!strcmp(argv[0],"nodaemon")) {
- no_daemon = 1;
+ no_daemon = true;
} else if (!strcmp(argv[0], "fork-server")) {
/* this is a special flag used only when the ADB client launches the ADB Server */
- is_daemon = 1;
+ is_daemon = true;
} else if (!strcmp(argv[0], "--reply-fd")) {
if (argc < 2) return syntax_error("--reply-fd requires an argument");
const char* reply_fd_str = argv[1];