unittest + compiler warnings

This commit is contained in:
Benjamin Sergeant
2019-01-05 21:10:08 -08:00
parent 4d587e35d8
commit cc8a9e883e
3 changed files with 6 additions and 6 deletions

View File

@ -43,9 +43,9 @@ namespace ix
{
errMsg = "no error";
auto fd = socket(address->ai_family,
address->ai_socktype,
address->ai_protocol);
int fd = (int) socket(address->ai_family,
address->ai_socktype,
address->ai_protocol);
if (fd < 0)
{
errMsg = "Cannot create a socket";