diff options
Diffstat (limited to 'adb/client/commandline.cpp')
-rw-r--r-- | adb/client/commandline.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/adb/client/commandline.cpp b/adb/client/commandline.cpp index 6ed5a500a..b55ae95e2 100644 --- a/adb/client/commandline.cpp +++ b/adb/client/commandline.cpp @@ -1308,9 +1308,9 @@ static bool _is_valid_ack_reply_fd(const int ack_reply_fd) { } 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; @@ -1330,12 +1330,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]; |