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

Commit 5db95b4d authored by Treehugger Robot's avatar Treehugger Robot Committed by Maciej Zenczykowski
Browse files

DnsResolver/getaddrinfo.cpp - fixes bugprone-branch-clone warning



Fixes:
  packages/modules/DnsResolver/getaddrinfo.cpp:731:9: error: switch has 2 consecutive identical branches [bugprone-branch-clone,-warnings-as-errors]
          case SOCK_DGRAM:
          ^
  packages/modules/DnsResolver/getaddrinfo.cpp:737:18: note: last of these clones ends here
              break;
                   ^

Test: builds
Bug: 153035880
Signed-off-by: default avatarMaciej Żenczykowski <maze@google.com>
Change-Id: I03ab16a8841e1389245fe6889ff6f82e2c3063ac
Merged-In: I03ab16a8841e1389245fe6889ff6f82e2c3063ac
parent 911cc9ae
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -731,8 +731,6 @@ static int get_port(const struct addrinfo* ai, const char* servname, int matchon
            return EAI_SERVICE;
        case SOCK_DGRAM:
        case SOCK_STREAM:
            allownumeric = 1;
            break;
        case ANY:
            allownumeric = 1;
            break;