Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 258d4a91 authored by Josh Gao's avatar Josh Gao
Browse files

adb: fix error message for `adb {forward,reverse}`

Test: `adb reverse`
Change-Id: I6fa078ea7a0e019df5c6309df99ffdf2a3219194
parent e445a6d8
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1614,9 +1614,9 @@ int adb_commandline(int argc, const char** argv) {
        return bugreport.DoIt(argc, argv);
        return bugreport.DoIt(argc, argv);
    } else if (!strcmp(argv[0], "forward") || !strcmp(argv[0], "reverse")) {
    } else if (!strcmp(argv[0], "forward") || !strcmp(argv[0], "reverse")) {
        bool reverse = !strcmp(argv[0], "reverse");
        bool reverse = !strcmp(argv[0], "reverse");
        ++argv;
        --argc;
        --argc;
        if (argc < 1) return syntax_error("%s requires an argument", argv[0]);
        if (argc < 1) return syntax_error("%s requires an argument", argv[0]);
        ++argv;


        // Determine the <host-prefix> for this command.
        // Determine the <host-prefix> for this command.
        std::string host_prefix;
        std::string host_prefix;