code style

This commit is contained in:
Roland Jax
2014-12-30 20:08:48 +01:00
parent df85caf71f
commit 612270f942
12 changed files with 85 additions and 53 deletions
+2 -1
View File
@@ -58,7 +58,8 @@ TCPSocket* TCPClient::connect(const string& server, const int& port)
return NULL;
memcpy(&address.sin_addr, he->h_addr_list[0], he->h_length);
} else {
}
else {
ret = inet_aton(server.c_str(), &address.sin_addr);
if (ret == 0)
return NULL;