unittest + compiler warnings

This commit is contained in:
Benjamin Sergeant
2019-01-05 21:10:08 -08:00
parent 5e1c150024
commit 60dc765178
3 changed files with 6 additions and 6 deletions

View File

@ -154,7 +154,7 @@ namespace ix
{
if (isCancellationRequested()) return false;
int ret;
ssize_t ret;
ret = recv(buffer, 1);
// We read one byte, as needed, all good.
@ -197,7 +197,7 @@ namespace ix
char* buffer = const_cast<char*>(str.c_str());
int len = (int) str.size();
int ret = send(buffer, len);
ssize_t ret = send(buffer, len);
// We wrote some bytes, as needed, all good.
if (ret > 0)