Skip to content

Commit

Permalink
p2pd: remove some dead code
Browse files Browse the repository at this point in the history
Coverity:
CID 739634 (#1 of 1): Dead default in switch (DEADCODE)
  Execution cannot reach this statement "default:".

Signed-off-by: Ferry Huberts <[email protected]>
  • Loading branch information
fhuberts committed Oct 23, 2012
1 parent 0abbc30 commit 20faf6d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/p2pd/src/p2pd.c
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,6 @@ AddUdpDestPort(const char *value,
return -1;
}
break;
case AF_INET:
default:
res = inet_pton(AF_INET, destAddr, &addr4.sin_addr);
if (!is_broadcast(addr4) && !is_multicast(addr4)) {
Expand Down Expand Up @@ -942,7 +941,6 @@ AddUdpDestPort(const char *value,
sizeof(addr6.sin6_addr.s6_addr));
break;
default:
case AF_INET:
new->address.v4.s_addr = addr4.sin_addr.s_addr;
break;
}
Expand Down

0 comments on commit 20faf6d

Please sign in to comment.