Fix all of the unannotated switch cases to annotate the fall through or do the right thing and break.

llvm-svn: 261950
This commit is contained in:
Greg Clayton
2016-02-26 01:20:20 +00:00
parent 5971f18133
commit cec91ef921
28 changed files with 92 additions and 103 deletions

View File

@@ -185,14 +185,12 @@ SocketAddress::GetIPAddress () const
{
case AF_INET:
if (inet_ntop(GetFamily(), &m_socket_addr.sa_ipv4.sin_addr, str, sizeof(str)))
{
return str;
}
break;
case AF_INET6:
if (inet_ntop(GetFamily(), &m_socket_addr.sa_ipv6.sin6_addr, str, sizeof(str)))
{
return str;
}
break;
}
return "";
}